Skip to content

Commit 4b1fecd

Browse files
committed
Fix casting
1 parent 465ff27 commit 4b1fecd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/EventListenerTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,10 @@ public function testLoggerMessageBoolean()
265265
$called++;
266266
$decoded = json_decode($data, true);
267267

268-
// `false` should be casted to `0`
269-
$messageSame = '0' === $decoded['message'];
268+
// `false` should be casted to `0` in L<9
269+
// `false` should be casted to `` in L9
270+
$messageSame = in_array($decoded['message'], ['', '0'], true);
271+
270272
$laravelLogTag = in_array('exception_log', $decoded['tags'], true);
271273
};
272274

0 commit comments

Comments
 (0)