Skip to content

Commit ca30ea6

Browse files
committed
updated to only check not null
1 parent 201f4a0 commit ca30ea6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/Test/FeatureTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function withRoutes(?array $routes = null)
5555
{
5656
$collection = Services::routes();
5757

58-
if ($routes !== null && $routes !== []) {
58+
if ($routes !== null) {
5959
$collection->resetRoutes();
6060

6161
foreach ($routes as $route) {

system/Test/FeatureTestTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function withRoutes(?array $routes = null)
4747
{
4848
$collection = Services::routes();
4949

50-
if ($routes !== null && $routes !== []) {
50+
if ($routes !== null) {
5151
$collection->resetRoutes();
5252

5353
foreach ($routes as $route) {

0 commit comments

Comments
 (0)