We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcd31dc commit 3f680e4Copy full SHA for 3f680e4
src/Php/ComposerPhpVersionFactory.php
@@ -13,6 +13,7 @@
13
use function end;
14
use function is_array;
15
use function is_file;
16
+use function is_int;
17
use function is_string;
18
use function sprintf;
19
@@ -33,6 +34,10 @@ public function __construct(
33
34
bool $bleedingEdge,
35
)
36
{
37
+ if (is_int($phpVersion)) {
38
+ return;
39
+ }
40
+
41
if (is_array($phpVersion)) {
42
if ($phpVersion['max'] < $phpVersion['min']) {
43
throw new ShouldNotHappenException('Invalid PHP version range: phpVersion.max should be greater or equal to phpVersion.min.');
0 commit comments