From cb4eb6eb85f2ad96696ad2d94fdb9d580661303e Mon Sep 17 00:00:00 2001 From: Chihiro Adachi <8196725+chihiro-adachi@users.noreply.github.com> Date: Mon, 18 Dec 2023 13:53:04 +0900 Subject: [PATCH] Fix "Error: Access to undeclared static property Eccube\Tests\Form\Type\Admin\BlockTypeTest::$container" --- tests/Eccube/Tests/Form/Type/Admin/BlockTypeTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Eccube/Tests/Form/Type/Admin/BlockTypeTest.php b/tests/Eccube/Tests/Form/Type/Admin/BlockTypeTest.php index e3c7531b84a..e42197f84c2 100644 --- a/tests/Eccube/Tests/Form/Type/Admin/BlockTypeTest.php +++ b/tests/Eccube/Tests/Form/Type/Admin/BlockTypeTest.php @@ -31,7 +31,7 @@ protected function setUp(): void 'csrf_protection' => false, ]) ->getForm(); - self::$container->get('request_stack')->push(new Request()); + static::getContainer()->get('request_stack')->push(new Request()); } public function testValidData()