|
@@ 687-696 (lines=10) @@
|
| 684 |
|
return; |
| 685 |
|
} |
| 686 |
|
|
| 687 |
|
if (version_compare($matches[1], self::MIN_CLI_VERSION, '<')) { |
| 688 |
|
throw new RuntimeException(sprintf( |
| 689 |
|
'Found an unsupported version of the Puli CLI: %s. Please '. |
| 690 |
|
'upgrade to version %s or higher. You can also install the '. |
| 691 |
|
'puli/cli dependency at version %s in your project.', |
| 692 |
|
$matches[1], |
| 693 |
|
self::MIN_CLI_VERSION, |
| 694 |
|
self::MIN_CLI_VERSION |
| 695 |
|
)); |
| 696 |
|
} |
| 697 |
|
|
| 698 |
|
if (version_compare($matches[1], self::MAX_CLI_VERSION, '>')) { |
| 699 |
|
throw new RuntimeException(sprintf( |
|
@@ 698-706 (lines=9) @@
|
| 695 |
|
)); |
| 696 |
|
} |
| 697 |
|
|
| 698 |
|
if (version_compare($matches[1], self::MAX_CLI_VERSION, '>')) { |
| 699 |
|
throw new RuntimeException(sprintf( |
| 700 |
|
'Found an unsupported version of the Puli CLI: %s. Please '. |
| 701 |
|
'downgrade to a lower version than %s. You can also install '. |
| 702 |
|
'the puli/cli dependency in your project.', |
| 703 |
|
$matches[1], |
| 704 |
|
self::MAX_CLI_VERSION |
| 705 |
|
)); |
| 706 |
|
} |
| 707 |
|
} |
| 708 |
|
} |
| 709 |
|
|