Skip to content

Commit 84fa662

Browse files
authored
Merge pull request #10 from shevelev-anatoliy/master
Update UrlCast.php
2 parents 4df8a60 + 59bd098 commit 84fa662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Casts/UrlCast.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ public function get($model, string $key, $value, array $attributes)
1515

1616
public function set($model, string $key, $value, array $attributes)
1717
{
18-
return parse_url($value, PHP_URL_PATH) ?? '/';
18+
return parse_url((string)$value, PHP_URL_PATH) ?? '/';
1919
}
2020
}

0 commit comments

Comments
 (0)