Skip to content

Commit

Permalink
#657 s/>/>= when checking for current PHP runtime in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Dec 30, 2020
1 parent 7552edc commit 0e23c12
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function getTestedClasses(): array
[new VoidMethodTypeHintedClass()],
];

if (PHP_VERSION_ID > 80000) {
if (PHP_VERSION_ID >= 80000) {
$objects[] = [new ClassWithPhp80TypedMethods()];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function getTestedImplementations(): array
[ObjectMethodTypeHintedInterface::class],
];

if (PHP_VERSION_ID > 80000) {
if (PHP_VERSION_ID >= 80000) {
$implementations[] = [ClassWithPhp80TypedMethods::class];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function getTestedImplementations(): array
[BaseInterface::class],
];

if (PHP_VERSION_ID > 80000) {
if (PHP_VERSION_ID >= 80000) {
$implementations[] = [ClassWithPhp80TypedMethods::class];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function getTestedImplementations(): array
[BaseInterface::class],
];

if (PHP_VERSION_ID > 80000) {
if (PHP_VERSION_ID >= 80000) {
$implementations[] = [ClassWithPhp80TypedMethods::class];
}

Expand Down

0 comments on commit 0e23c12

Please sign in to comment.