Skip to content

Commit 5676a07

Browse files
committed
test: replace empty() with isset()
1 parent 1efc8f4 commit 5676a07

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

phpstan-baseline.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -431,11 +431,6 @@
431431
'count' => 1,
432432
'path' => __DIR__ . '/tests/Unit/UserTest.php',
433433
];
434-
$ignoreErrors[] = [
435-
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
436-
'count' => 1,
437-
'path' => __DIR__ . '/tests/_support/Config/Registrar.php',
438-
];
439434
$ignoreErrors[] = [
440435
'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\TokenLoginModel\\:\\:class is discouraged\\.$#',
441436
'count' => 1,

tests/_support/Config/Registrar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public static function Database()
136136

137137
// Under GitHub Actions, we can set an ENV var named 'DB'
138138
// so that we can test against multiple databases.
139-
if (($group = getenv('DB')) && ! empty(self::$dbConfig[$group])) {
139+
if (($group = getenv('DB')) && ! isset(self::$dbConfig[$group])) {
140140
$config['tests'] = self::$dbConfig[$group];
141141
}
142142

0 commit comments

Comments
 (0)