Skip to content

Commit

Permalink
updated to only check not null
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Oct 16, 2023
1 parent 201f4a0 commit ca30ea6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/Test/FeatureTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion system/Test/FeatureTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ca30ea6

Please sign in to comment.