From b105bb869e86d991cd0e1c8344766780b46ee72b Mon Sep 17 00:00:00 2001 From: "tien.xuan.vo" Date: Sat, 16 Mar 2024 08:47:02 +0700 Subject: [PATCH] chore: Fix CS --- src/Filter/BaseFilter.php | 2 +- tests/Integration/CommandTestCase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Filter/BaseFilter.php b/src/Filter/BaseFilter.php index 67eeaeb..6734566 100644 --- a/src/Filter/BaseFilter.php +++ b/src/Filter/BaseFilter.php @@ -7,7 +7,7 @@ abstract class BaseFilter implements FilterInterface { - private null|string|array $cache = null; + private string|array|null $cache = null; public function __construct( protected string $subpackageName, diff --git a/tests/Integration/CommandTestCase.php b/tests/Integration/CommandTestCase.php index 3a18c58..1425e5d 100644 --- a/tests/Integration/CommandTestCase.php +++ b/tests/Integration/CommandTestCase.php @@ -318,7 +318,7 @@ protected static function startLocalServer(): void self::$server = new Process(['php', '-S', 'localhost:8000', '-t', static::getFilesPath()]); self::$server->start(); self::$server->waitUntil(function ($type, $output) { - return false !== strpos($output, 'Development Server (http://localhost:8000) started'); + return str_contains($output, 'Development Server (http://localhost:8000) started'); }); }