mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fix delimiter
This commit is contained in:
parent
ea62387cae
commit
71800770b1
@ -127,7 +127,7 @@ class ClassLikes
|
||||
$predefined_classes = get_declared_classes();
|
||||
|
||||
foreach ($predefined_classes as $predefined_class) {
|
||||
$predefined_class = preg_replace('/^\\/', $predefined_class);
|
||||
$predefined_class = preg_replace('/^\\\/', '', $predefined_class);
|
||||
$reflection_class = new \ReflectionClass($predefined_class);
|
||||
|
||||
if (!$reflection_class->isUserDefined()) {
|
||||
@ -141,7 +141,7 @@ class ClassLikes
|
||||
$predefined_interfaces = get_declared_interfaces();
|
||||
|
||||
foreach ($predefined_interfaces as $predefined_interface) {
|
||||
$predefined_interface = preg_replace('/^\\/', $predefined_interface);
|
||||
$predefined_interface = preg_replace('/^\\\/', '', $predefined_interface);
|
||||
$reflection_class = new \ReflectionClass($predefined_interface);
|
||||
|
||||
if (!$reflection_class->isUserDefined()) {
|
||||
|
Loading…
Reference in New Issue
Block a user