From 478cf9eba2803d1c0a83050ea6617863589e8c95 Mon Sep 17 00:00:00 2001 From: auooru Date: Sat, 17 Feb 2024 18:08:38 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E9=94=81=E5=AE=9A=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E7=89=88=E6=9C=AC=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 2 +- tests/CodeRewriteTest.php | 1 + tests/Stub/TestClass1.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1489ece..ccbe050 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "yurunsoft/doctrine-annotations": "^1.104.3" }, "require-dev": { - "imiphp/imi": "3.0.x-dev", + "imiphp/imi": "3.0.x-dev#36c5270", "php-cs-fixer/shim": "~3.35.1", "phpunit/phpunit": "^10.4", "symfony/var-dumper": "^6.3" diff --git a/tests/CodeRewriteTest.php b/tests/CodeRewriteTest.php index e40cca7..537ba18 100644 --- a/tests/CodeRewriteTest.php +++ b/tests/CodeRewriteTest.php @@ -73,6 +73,7 @@ public static function rewriteCodeDataProvider(): \Generator #[Facade(class: \Imi\Server\WebSocket\Route\Annotation\WSConfig::class)] #[Bean(name: 'hotUpdate', env: 'cli')] #[Listener(eventName: 'IMI.APP_RUN', priority: 19940312, one: true)] + #[Listener] class TestClass1 { public const DESCRIPTORSPEC = [ diff --git a/tests/Stub/TestClass1.php b/tests/Stub/TestClass1.php index 63151f7..e700201 100644 --- a/tests/Stub/TestClass1.php +++ b/tests/Stub/TestClass1.php @@ -24,6 +24,7 @@ * @Bean(name="hotUpdate", env="cli") * * @Listener(eventName="IMI.APP_RUN", priority=ImiPriority::IMI_MAX, one=true) + * @Listener() */ #[Bean(name: 'test456', env: 'fpm')] class TestClass1