Skip to content

Commit 254ec69

Browse files
committed
Util/GetOpt method was renamed in PHPUnit 8.5.9
1 parent a4026f6 commit 254ec69

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/bootstrap.printer.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ private function parseCliArguments(): array
5454
if (version_compare(Version::id(), '9.3.8', 'ge')) {
5555
return (new CliParser)->parse($parameters, $shortOptions);
5656
}
57-
return GetOptUtil::parse($parameters, $shortOptions);
57+
if (version_compare(Version::id(), '8.5.9', 'ge')) {
58+
// @see https://github.com/sebastianbergmann/phpunit/commit/d5d1ee19a5f04a022ae1dd00590ccf60ec269b16
59+
return GetOptUtil::parse($parameters, $shortOptions);
60+
}
61+
return GetOptUtil::getopt($parameters, $shortOptions);
5862
}
5963
}
6064

0 commit comments

Comments
 (0)