Skip to content

Commit

Permalink
[test] replace str_starts_with
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Dec 20, 2023
1 parent bf87e0b commit 15299c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/PhpUnitSfTestHelperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function isa_ok($actual, $expected, string $message = ''): void
{
if ('array' === $expected) {
$this->assertIsArray($actual, $message);
} elseif (str_starts_with($expected, 'sf')) {
} elseif (strpos($expected, 'sf') === 0) {
$this->assertInstanceOf($expected, $actual, $message);
} else {
throw new \RuntimeException('unhandled type: '.$expected);
Expand Down

0 comments on commit 15299c7

Please sign in to comment.