Skip to content

Commit 50ae0bc

Browse files
committed
Treat Redis::isConnected as non-deterministic
1 parent 490050c commit 50ae0bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/functionMetadata_original.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@
170170
'DateTimeImmutable::getTimestamp' => ['hasSideEffects' => false],
171171
'DateTimeImmutable::getTimezone' => ['hasSideEffects' => false],
172172

173+
// affected by connect()
174+
'Redis::isConnected' => ['hasSideEffects' => true],
175+
173176
'SplDoublyLinkedList::pop' => ['hasSideEffects' => true],
174177
'SplDoublyLinkedList::shift' => ['hasSideEffects' => true],
175178

0 commit comments

Comments
 (0)