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