Skip to content

Commit

Permalink
Merge pull request #287 from uuf6429/chore/update-null-path-handling
Browse files Browse the repository at this point in the history
Handle null path better
  • Loading branch information
carlos-granados authored Feb 14, 2025
2 parents e016902 + 5ae9429 commit 2ba6668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Node/FeatureNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public function getLine()
protected function isAbsolutePath($file)
{
if ($file === null) {
@trigger_error(sprintf('Calling "%s()" with a null in the $file argument is deprecated since Symfony 4.4.', __METHOD__), E_USER_DEPRECATED);
throw new InvalidArgumentException('The provided file path must not be null.');
}

return strspn($file, '/\\', 0, 1)
Expand Down

0 comments on commit 2ba6668

Please sign in to comment.