Open
Description
From #1004 (comment):
The local
$rulesCount
is probably unnecessary here, sincecount
is atomic (!== []
might be possible if the type of$rules
can be guaranteed to be an array), andend()
could be used to access the last element. But that's beyond the scope of this PR.