From 45577f123c290d6a59616a475244653b7035edf3 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Tue, 21 Feb 2017 02:07:43 -0500 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20add=20Symony=20and=20Composer?= =?UTF-8?q?=20to=20predefined=20(Reflectable)=20classes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Psalm/Config.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Psalm/Config.php b/src/Psalm/Config.php index 6c6ba3c63..6bcbd8d37 100644 --- a/src/Psalm/Config.php +++ b/src/Psalm/Config.php @@ -682,7 +682,9 @@ class Config foreach ($predefined_classes as $predefined_class) { if (strpos($predefined_class, 'Psalm\\') !== 0 && - strpos($predefined_class, 'PhpParser\\') !== 0 + strpos($predefined_class, 'PhpParser\\') !== 0 && + strpos($predefined_class, 'Symfony\\') !== 0 && + strpos($predefined_class, 'Composer\\') !== 0 ) { $this->predefined_classlikes[strtolower($predefined_class)] = true; } @@ -693,7 +695,9 @@ class Config foreach ($predefined_interfaces as $predefined_interface) { if (strpos($predefined_interface, 'Psalm\\') !== 0 && - strpos($predefined_interface, 'PhpParser\\') !== 0 + strpos($predefined_interface, 'PhpParser\\') !== 0 && + strpos($predefined_interface, 'Symfony\\') !== 0 && + strpos($predefined_interface, 'Composer\\') !== 0 ) { $this->predefined_classlikes[strtolower($predefined_interface)] = true; }