1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Fix delimiter

This commit is contained in:
Brown 2018-11-09 12:59:17 -05:00
parent ea62387cae
commit 71800770b1

View File

@ -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()) {