Skip to content

Commit

Permalink
added missing use statements
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jul 21, 2024
1 parent 811d7f7 commit 9808973
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/PHPStan/Analyser/nsrt/bug-11311.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Bug11311;

use function PHPStan\Testing\assertType;
use InvalidArgumentException;

function doFoo(string $s) {
if (1 === preg_match('/(?<major>\d+)\.(?<minor>\d+)(?:\.(?<patch>\d+))?/', $s, $matches, PREG_UNMATCHED_AS_NULL)) {
Expand Down
2 changes: 1 addition & 1 deletion tests/PHPStan/Analyser/nsrt/preg_match_shapes.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace PregMatchShapes;

use function PHPStan\Testing\assertType;

use InvalidArgumentException;

function doMatch(string $s): void {
if (preg_match('/Price: /i', $s, $matches)) {
Expand Down

0 comments on commit 9808973

Please sign in to comment.