File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1515use function class_exists ;
1616use function count ;
1717use function dirname ;
18- use function end ;
1918use function explode ;
2019use function implode ;
2120use function in_array ;
2221use function is_array ;
2322use function is_file ;
2423use function is_readable ;
25- use function is_string ;
2624use function sprintf ;
2725use function str_starts_with ;
2826use function strlen ;
@@ -59,16 +57,16 @@ public function print(Output $output): void
5957 $ minComposerPhpVersion = $ this ->composerPhpVersionFactory ->getMinVersion ();
6058 $ maxComposerPhpVersion = $ this ->composerPhpVersionFactory ->getMaxVersion ();
6159 if ($ minComposerPhpVersion !== null && $ maxComposerPhpVersion !== null ) {
62- if ($ minComposerPhpVersion ->getVersionId () = == $ maxComposerPhpVersion ->getVersionId ()) {
60+ if ($ minComposerPhpVersion ->getVersionId () ! == $ maxComposerPhpVersion ->getVersionId ()) {
6361 $ output ->writeLineFormatted (sprintf (
64- '<info>PHP composer.json required version:</info> %s ' ,
62+ '<info>PHP composer.json required version:</info> %s-%s ' ,
6563 $ minComposerPhpVersion ->getVersionString (),
64+ $ maxComposerPhpVersion ->getVersionString (),
6665 ));
6766 } else {
6867 $ output ->writeLineFormatted (sprintf (
69- '<info>PHP composer.json required version:</info> %s-%s ' ,
68+ '<info>PHP composer.json required version:</info> %s ' ,
7069 $ minComposerPhpVersion ->getVersionString (),
71- $ maxComposerPhpVersion ->getVersionString (),
7270 ));
7371 }
7472 }
You can’t perform that action at this time.
0 commit comments