Skip to content

Commit 25c1017

Browse files
Fix
1 parent 6084711 commit 25c1017

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/PHPStan/Rules/Functions/ParameterCastableToNumberRuleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function testBug13775(): void
167167
];
168168
}
169169

170-
$this->analyse([__DIR__ . '/data/bug-13775.php'], $this->hackPhp74ErrorMessages($errors));
170+
$this->analyse([__DIR__ . '/data/bug-13775.php'], $errors);
171171
}
172172

173173
public function testBug13775Bis(): void
@@ -210,7 +210,7 @@ public function testBug13775Bis(): void
210210
];
211211
}
212212

213-
$this->analyse([__DIR__ . '/data/bug-13775-bis.php'], $this->hackPhp74ErrorMessages($errors));
213+
$this->analyse([__DIR__ . '/data/bug-13775-bis.php'], $errors);
214214
}
215215

216216
public function testBug12146(): void

tests/PHPStan/Rules/Functions/data/param-castable-to-number-functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ function wrongNumberOfArguments(): void
4040

4141
function validUsages(): void
4242
{
43-
var_dump(array_sum(['5.5', false, true, new \SimpleXMLElement('<a>7.7</a>'), 5, 5.5, null]));
44-
var_dump(array_product(['5.5', false, true, new \SimpleXMLElement('<a>7.7</a>'), 5, 5.5, null]));
43+
var_dump(array_sum(['5.5', false, true, 5, 5.5, null]));
44+
var_dump(array_product(['5.5', false, true, 5, 5.5, null]));
4545
}

0 commit comments

Comments
 (0)