|
@@ 727-736 (lines=10) @@
|
| 724 |
|
return; |
| 725 |
|
} |
| 726 |
|
|
| 727 |
|
if (version_compare($matches[1], self::MIN_CLI_VERSION, '<')) { |
| 728 |
|
throw new RuntimeException(sprintf( |
| 729 |
|
'Found an unsupported version of the Puli CLI: %s. Please '. |
| 730 |
|
'upgrade to version %s or higher. You can also install the '. |
| 731 |
|
'puli/cli dependency at version %s in your project.', |
| 732 |
|
$matches[1], |
| 733 |
|
self::MIN_CLI_VERSION, |
| 734 |
|
self::MIN_CLI_VERSION |
| 735 |
|
)); |
| 736 |
|
} |
| 737 |
|
|
| 738 |
|
if (version_compare($matches[1], self::MAX_CLI_VERSION, '>')) { |
| 739 |
|
throw new RuntimeException(sprintf( |
|
@@ 738-746 (lines=9) @@
|
| 735 |
|
)); |
| 736 |
|
} |
| 737 |
|
|
| 738 |
|
if (version_compare($matches[1], self::MAX_CLI_VERSION, '>')) { |
| 739 |
|
throw new RuntimeException(sprintf( |
| 740 |
|
'Found an unsupported version of the Puli CLI: %s. Please '. |
| 741 |
|
'downgrade to a lower version than %s. You can also install '. |
| 742 |
|
'the puli/cli dependency in your project.', |
| 743 |
|
$matches[1], |
| 744 |
|
self::MAX_CLI_VERSION |
| 745 |
|
)); |
| 746 |
|
} |
| 747 |
|
} |
| 748 |
|
} |
| 749 |
|
|