Skip to content

Commit a97829f

Browse files
committed
Void return type was introduced in PHP 7.1
1 parent 853f694 commit a97829f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/cli/BuildCest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ public function generatedUnionReturnTypeOnPhp8(CliGuy $I, Scenario $scenario)
7676

7777
public function noReturnForVoidType(CliGuy $I, Scenario $scenario)
7878
{
79-
if (PHP_MAJOR_VERSION < 7) {
80-
$scenario->skip('Does not work in PHP < 7');
79+
if (PHP_VERSION_ID < 70100) {
80+
$scenario->skip('Does not work in PHP < 7.1');
8181
}
8282

8383
$I->wantToTest('no return keyword generated for void typehint');

0 commit comments

Comments
 (0)