Skip to content

Commit 2ba6668

Browse files
Merge pull request #287 from uuf6429/chore/update-null-path-handling
Handle null path better
2 parents e016902 + 5ae9429 commit 2ba6668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Behat/Gherkin/Node/FeatureNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public function getLine()
260260
protected function isAbsolutePath($file)
261261
{
262262
if ($file === null) {
263-
@trigger_error(sprintf('Calling "%s()" with a null in the $file argument is deprecated since Symfony 4.4.', __METHOD__), E_USER_DEPRECATED);
263+
throw new InvalidArgumentException('The provided file path must not be null.');
264264
}
265265

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

0 commit comments

Comments
 (0)