Skip to content

Commit

Permalink
Merge pull request #105 from phug-php/fix/strict-in-array
Browse files Browse the repository at this point in the history
Use strict in_array checks in the lexer

split: 594ea1a79de8078e9e5c0edc1440db2b574b23d0
  • Loading branch information
kylekatarnls authored Sep 2, 2023
1 parent 25c0842 commit 55c7853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventManagerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function mergeEventListeners($eventListeners)
$listeners->setExtractFlags(ListenerQueue::EXTR_BOTH);

foreach ($listeners as $listener) {
if (!in_array($listener['data'], $queue)) {
if (!in_array($listener['data'], $queue, true)) {
$this->attach($eventName, $listener['data'], $listener['priority']);
}
}
Expand Down

0 comments on commit 55c7853

Please sign in to comment.