We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4df8a60 + 59bd098 commit 84fa662Copy full SHA for 84fa662
src/Casts/UrlCast.php
@@ -15,6 +15,6 @@ public function get($model, string $key, $value, array $attributes)
15
16
public function set($model, string $key, $value, array $attributes)
17
{
18
- return parse_url($value, PHP_URL_PATH) ?? '/';
+ return parse_url((string)$value, PHP_URL_PATH) ?? '/';
19
}
20
0 commit comments