From cc85439138ef626d1b40c37ce1b28baf5ed2a088 Mon Sep 17 00:00:00 2001 From: sji Date: Sat, 1 Aug 2020 02:55:50 +0900 Subject: [PATCH] fix warning from static analyzers --- .../Daemon/Searcher/Context/PhpSearcherContextInterface.php | 3 ++- .../Daemon/Searcher/Context/PhpSearcherContextCreatorTest.php | 3 ++- tests/Inspector/Settings/TraceLoopSettingsTest.php | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Inspector/Daemon/Searcher/Context/PhpSearcherContextInterface.php b/src/Inspector/Daemon/Searcher/Context/PhpSearcherContextInterface.php index 0ac90160..f28bf2c8 100644 --- a/src/Inspector/Daemon/Searcher/Context/PhpSearcherContextInterface.php +++ b/src/Inspector/Daemon/Searcher/Context/PhpSearcherContextInterface.php @@ -14,6 +14,7 @@ namespace PhpProfiler\Inspector\Daemon\Searcher\Context; use Amp\Promise; +use PhpProfiler\Inspector\Daemon\Dispatcher\Message\UpdateTargetProcessMessage; interface PhpSearcherContextInterface { @@ -33,4 +34,4 @@ public function sendTargetRegex(string $regex): Promise; * @psalm-yield Promise */ public function receivePidList(): Promise; -} \ No newline at end of file +} diff --git a/tests/Inspector/Daemon/Searcher/Context/PhpSearcherContextCreatorTest.php b/tests/Inspector/Daemon/Searcher/Context/PhpSearcherContextCreatorTest.php index eb23b7ef..a026b542 100644 --- a/tests/Inspector/Daemon/Searcher/Context/PhpSearcherContextCreatorTest.php +++ b/tests/Inspector/Daemon/Searcher/Context/PhpSearcherContextCreatorTest.php @@ -35,4 +35,5 @@ public function testCreate() PhpSearcherContextInterface::class, $php_searcher_context_creator->create() ); - }} + } +} diff --git a/tests/Inspector/Settings/TraceLoopSettingsTest.php b/tests/Inspector/Settings/TraceLoopSettingsTest.php index 0e08c987..2d2a4d1b 100644 --- a/tests/Inspector/Settings/TraceLoopSettingsTest.php +++ b/tests/Inspector/Settings/TraceLoopSettingsTest.php @@ -57,5 +57,4 @@ public function testFromConsoleInputMaxRetriesNotInteger(): void $this->expectException(TraceLoopInspectorSettingsException::class); $settings = TraceLoopSettings::fromConsoleInput($input); } - }