File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public function isNamespaceConfiguredToAutoload(string $namespace): bool
84
84
}
85
85
86
86
foreach ($ classLoader ->getPrefixes () as $ prefix => $ paths ) {
87
- if (0 === strpos ($ namespace , $ prefix )) {
87
+ if (str_starts_with ($ namespace , $ prefix )) {
88
88
return true ;
89
89
}
90
90
}
Original file line number Diff line number Diff line change 16
16
/**
17
17
* @internal
18
18
*/
19
- final class ClassNameValue
19
+ final class ClassNameValue implements \Stringable
20
20
{
21
21
public function __construct (
22
22
private string $ typeHint ,
@@ -38,7 +38,7 @@ public function isSelf(): bool
38
38
return 'self ' === $ this ->typeHint ;
39
39
}
40
40
41
- public function __toString ()
41
+ public function __toString (): string
42
42
{
43
43
return $ this ->getShortName ();
44
44
}
You can’t perform that action at this time.
0 commit comments