Merge pull request #18148 from kamil-tekiela/fix-bug-in-Advisor

Fix type bug in Advisor
This commit is contained in:
Maurício Meneghini Fauth 2023-02-24 18:53:42 -03:00 committed by GitHub
commit ac58c08e15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ class Advisor
'fired',
static function (): void {
},
function (array $arguments, int $value) {
function (array $arguments, int|string $value) {
// Did matching rule fire?
foreach ($this->runResult['fired'] as $rule) {
if ($rule['id'] == $value) {