smalot / cups-ipp

CUPS Implementation of IPP - PHP Client API
GNU General Public License v2.0
107 stars 57 forks source link

composer require smalot/cups-ipp #12

Open boomsya opened 5 years ago

boomsya commented 5 years ago
root@ubuntu:/var/www/html/ipp# composer require smalot/cups-ipp
Using version ^0.4.0 for smalot/cups-ipp
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)

Installation failed, deleting ./composer.json.

  [ErrorException]                                                                         
  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?  

require [--dev] [--prefer-source] [--prefer-dist] [--no-plugins] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...
boomsya commented 5 years ago

damn, this problem in composer with a php 7.3

As a quick and dirty alternative, you can fix the error in that one file. Just replace "continue" with "break" (or maybe "continue 2").

/usr/share/php/Composer/DependencyResolver/RuleSetGenerator.php at line 286