Skip to content

Commit fac88d4

Browse files
localheinzsebastianbergmann
authored andcommitted
Fix: Run 'tools/php-cs-fixer fix'
1 parent 1299284 commit fac88d4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Framework/Constraint/StringStartsWith.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
namespace PHPUnit\Framework\Constraint;
1111

12-
use function strlen;
1312
use function strpos;
1413
use PHPUnit\Framework\InvalidArgumentException;
1514

@@ -26,7 +25,7 @@ final class StringStartsWith extends Constraint
2625

2726
public function __construct(string $prefix)
2827
{
29-
if (strlen($prefix) === 0) {
28+
if ($prefix === '') {
3029
throw InvalidArgumentException::create(1, 'non-empty string');
3130
}
3231

0 commit comments

Comments
 (0)