Skip to content

Commit

Permalink
v6 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Jan 26, 2025
1 parent 9fb900d commit 3d9874f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Hooks/TestCaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ public static function afterStatementAnalysis(AfterClassLikeAnalysisEvent $event
}

$apparent_provider_method_name = preg_replace('/\(\s*\)$/', '', $apparent_provider_method_name);
assert($apparent_provider_method_name !== null);

$provider_method_id = $codebase->getDeclaringMethodId($apparent_provider_method_name);

Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/Prophecy.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Feature: Prophecy
Given I have the following config
"""
<?xml version="1.0"?>
<psalm errorLevel="1" %s>
<psalm errorLevel="1" findUnusedCode="false" %s>
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/TestCase.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Feature: TestCase
Given I have the following config
"""
<?xml version="1.0"?>
<psalm errorLevel="1" %s>
<psalm errorLevel="1" findUnusedCode="false" %s>
<projectFiles>
<directory name="."/>
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles>
Expand Down

0 comments on commit 3d9874f

Please sign in to comment.