From ca30ea6af6c4068052e160509ef04ce0c64f655e Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 16 Oct 2023 11:36:17 +0700 Subject: [PATCH] updated to only check not null --- system/Test/FeatureTestCase.php | 2 +- system/Test/FeatureTestTrait.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/Test/FeatureTestCase.php b/system/Test/FeatureTestCase.php index 6e9cec0d16d5..c94cf926ca89 100644 --- a/system/Test/FeatureTestCase.php +++ b/system/Test/FeatureTestCase.php @@ -55,7 +55,7 @@ protected function withRoutes(?array $routes = null) { $collection = Services::routes(); - if ($routes !== null && $routes !== []) { + if ($routes !== null) { $collection->resetRoutes(); foreach ($routes as $route) { diff --git a/system/Test/FeatureTestTrait.php b/system/Test/FeatureTestTrait.php index b16e941fef63..6acef638f6b3 100644 --- a/system/Test/FeatureTestTrait.php +++ b/system/Test/FeatureTestTrait.php @@ -47,7 +47,7 @@ protected function withRoutes(?array $routes = null) { $collection = Services::routes(); - if ($routes !== null && $routes !== []) { + if ($routes !== null) { $collection->resetRoutes(); foreach ($routes as $route) {