Skip to content

Commit

Permalink
Fix broken testEmitWithDummyDriverNoShutdown test
Browse files Browse the repository at this point in the history
Attempt to decrement unset static class property was
causing tests to fail due to this warning: "Decrement
on type null has no effect, this will change in the next
major version of PHP".
  • Loading branch information
rootpd authored and tomaj committed Dec 17, 2023
1 parent c1d5199 commit c0d22f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Shutdown/StopShutdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ class StopShutdown implements ShutdownInterface

public function shouldShutdown(DateTime $startTime): bool
{
if (!isset(self::$eventsStop)) {
return false;
}
if (self::$eventsStop === 1) {
return true;
}
Expand Down

0 comments on commit c0d22f9

Please sign in to comment.