Skip to content

Commit c87428f

Browse files
authored
fix preg_match() parameter z-song#2 must be string
preg_match(): Passing null to parameter z-song#2 ($subject) of type string is deprecated in /vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php on line 625
1 parent 3fb6c9e commit c87428f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Auth/Database/Administrator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct(array $attributes = [])
4747
*/
4848
public function getAvatarAttribute($avatar)
4949
{
50-
if (url()->isValidUrl($avatar)) {
50+
if ($avatar && url()->isValidUrl($avatar)) {
5151
return $avatar;
5252
}
5353

0 commit comments

Comments
 (0)