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