@@ 708-717 (lines=10) @@ | ||
705 | return; |
|
706 | } |
|
707 | ||
708 | if (version_compare($matches[1], self::MIN_CLI_VERSION, '<')) { |
|
709 | throw new RuntimeException(sprintf( |
|
710 | 'Found an unsupported version of the Puli CLI: %s. Please '. |
|
711 | 'upgrade to version %s or higher. You can also install the '. |
|
712 | 'puli/cli dependency at version %s in your project.', |
|
713 | $matches[1], |
|
714 | self::MIN_CLI_VERSION, |
|
715 | self::MIN_CLI_VERSION |
|
716 | )); |
|
717 | } |
|
718 | ||
719 | if (version_compare($matches[1], self::MAX_CLI_VERSION, '>')) { |
|
720 | throw new RuntimeException(sprintf( |
|
@@ 719-727 (lines=9) @@ | ||
716 | )); |
|
717 | } |
|
718 | ||
719 | if (version_compare($matches[1], self::MAX_CLI_VERSION, '>')) { |
|
720 | throw new RuntimeException(sprintf( |
|
721 | 'Found an unsupported version of the Puli CLI: %s. Please '. |
|
722 | 'downgrade to a lower version than %s. You can also install '. |
|
723 | 'the puli/cli dependency in your project.', |
|
724 | $matches[1], |
|
725 | self::MAX_CLI_VERSION |
|
726 | )); |
|
727 | } |
|
728 | } |
|
729 | } |
|
730 |