From 97d813d9caa530618662d06fc6588847c46ece4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1chym=20Tou=C5=A1ek?= Date: Tue, 5 Oct 2021 15:46:23 +0200 Subject: [PATCH 1/2] Create Kernel.stubphp --- src/Stubs/common/Component/HttpKernel/Kernel.stubphp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/Stubs/common/Component/HttpKernel/Kernel.stubphp diff --git a/src/Stubs/common/Component/HttpKernel/Kernel.stubphp b/src/Stubs/common/Component/HttpKernel/Kernel.stubphp new file mode 100644 index 00000000..445bac7c --- /dev/null +++ b/src/Stubs/common/Component/HttpKernel/Kernel.stubphp @@ -0,0 +1,11 @@ + Date: Fri, 8 Oct 2021 07:44:18 +0200 Subject: [PATCH 2/2] Create Kernel.feature --- tests/acceptance/acceptance/Kernel.feature | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/acceptance/acceptance/Kernel.feature diff --git a/tests/acceptance/acceptance/Kernel.feature b/tests/acceptance/acceptance/Kernel.feature new file mode 100644 index 00000000..1593b7b0 --- /dev/null +++ b/tests/acceptance/acceptance/Kernel.feature @@ -0,0 +1,27 @@ +@symfony-5 +Feature: Kernel + + Background: + Given I have Symfony plugin enabled + + Scenario: MixedOperand error about $environment is not raised + Given I have the following code + """ + import('../config/{packages}/' . $this->environment . '/*.yaml'); + } + } + """ + When I run Psalm + Then I see no errors