Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php-http/socket-client requirement #21

Open
r2my opened this issue May 25, 2020 · 3 comments
Open

php-http/socket-client requirement #21

r2my opened this issue May 25, 2020 · 3 comments

Comments

@r2my
Copy link

r2my commented May 25, 2020

Hello,

I'm trying to install package on Symfony 5.

To install it:

# composer require --dev smalot/cups-ipp:dev-master
Do not run Composer as root/super user! See https://getcomposer.org/root for details
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.0.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for smalot/cups-ipp dev-master -> satisfiable by smalot/cups-ipp[dev-master].
    - smalot/cups-ipp dev-master requires php-http/socket-client ^1.0 -> satisfiable by php-http/socket-client[v1.0.0, v1.1.0, v1.2.0, v1.3.0, v1.4.0, v1.4.1] but these conflict with your requirements or minimum-stability.


Installation failed, reverting ./composer.json to its original content.
# composer show -i
symfony/options-resolver             v5.0.8
php-http/socket-client               dev-master

How to add dependency for php-http/socket-client v2.0 ?

Thanks!
Remy

@r2my
Copy link
Author

r2my commented May 28, 2020

Hello,
Since last release it is possible to install the package without dependency restrictions. Thanks for the update.
I have now another issue:

Compile Error: Declaration of Smalot\Cups\Transport\Client::sendRequest(Psr\Http\Message\RequestInterface $request) must be compatible with Psr\Http\Client\ClientInterface::sendRequest(Psr\Http\Message\RequestInterface $request): Psr\Http\Message\ResponseInterface

Symfony\Component\ErrorHandler\Error\
FatalError
in vendor/smalot/cups-ipp/src/Transport/Client.php (line 119)
    }    /**     * (@inheritdoc}     */    public function sendRequest(RequestInterface $request)    {        if ($this->username || $this->password) {            switch ($this->authType) {                case self::AUTHTYPE_BASIC:                    $pass = base64_encode($this->username.':'.$this->password);
# composer -i show
Do not run Composer as root/super user! See https://getcomposer.org/root for details
You are using the deprecated option "installed". Only installed packages are shown by default now. The --all option can be used to show all packages.
clue/stream-filter                   v1.4.1             A simple and modern approach to stream filtering in PHP
doctrine/annotations                 1.10.3             Docblock Annotations Parser
doctrine/cache                       1.10.1             PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, m...
doctrine/collections                 1.6.5              PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
doctrine/common                      2.13.1             PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depen...
doctrine/dbal                        2.10.2             Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
doctrine/doctrine-bundle             2.1.0              Symfony DoctrineBundle
doctrine/doctrine-migrations-bundle  2.1.2              Symfony DoctrineMigrationsBundle
doctrine/event-manager               1.1.0              The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.
doctrine/inflector                   1.4.2              PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and...
doctrine/instantiator                1.3.0              A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer                       1.2.1              PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
doctrine/migrations                  2.2.1              PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for...
doctrine/orm                         v2.7.3             Object-Relational-Mapper for PHP
doctrine/persistence                 1.3.7              The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine objec...
doctrine/reflection                  1.2.1              The Doctrine Reflection project is a simple library used by the various Doctrine projects which adds some addition...
doctrine/sql-formatter               1.0.1              a PHP SQL highlighting library
egulias/email-validator              2.1.17             A library for validating emails against several RFCs
guzzlehttp/psr7                      1.6.1              PSR-7 message implementation that also provides common utility methods
laminas/laminas-code                 3.4.1              Extensions to the PHP Reflection API, static code scanning, and code generation
laminas/laminas-eventmanager         3.2.1              Trigger and listen to events within a PHP application
laminas/laminas-zendframework-bridge 1.0.4              Alias legacy ZF class names to Laminas Project equivalents.
markbaker/complex                    1.4.8              PHP Class for working with complex numbers
markbaker/matrix                     1.2.0              PHP Class for working with matrices
mike42/escpos-php                    v3.0               PHP receipt printer library for use with ESC/POS-compatible thermal and impact printers
mike42/gfx-php                       v0.6               The pure PHP graphics library
monolog/monolog                      2.1.0              Sends your logs to files, sockets, inboxes, databases and various web services
nelmio/cors-bundle                   2.0.1              Adds CORS (Cross-Origin Resource Sharing) headers support in your Symfony application
nikic/php-parser                     v4.4.0             A PHP parser written in PHP
nyholm/psr7                          1.3.0              A fast PHP7 implementation of PSR-7
ocramius/package-versions            1.8.0              Composer plugin that provides efficient querying for installed package versions (no runtime IO)
ocramius/proxy-manager               2.8.0              A library providing utilities to generate, instantiate and generally operate with Object Proxies
php-http/client-common               2.1.0              Common HTTP Client implementations and tools for HTTPlug
php-http/httplug                     2.1.0              HTTPlug, the HTTP client abstraction for PHP
php-http/message                     1.8.0              HTTP Message related tools
php-http/message-factory             v1.0.2             Factory interfaces for PSR-7 HTTP Message
php-http/promise                     v1.0.0             Promise used for asynchronous HTTP requests
php-http/socket-client               dev-master 7770fd3 Socket client for PHP-HTTP
phpdocumentor/reflection-common      2.1.0              Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock    5.1.0              With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information...
phpdocumentor/type-resolver          1.1.0              A PSR-5 based resolver of Class names, Types and Structural Element Names
phpoffice/phpspreadsheet             1.12.0             PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine
prestashop/prestashop-webservice-lib dev-master d27733c PrestaShop Webservice access library
psr/cache                            1.0.1              Common interface for caching libraries
psr/container                        1.0.0              Common Container Interface (PHP FIG PSR-11)
psr/event-dispatcher                 1.0.0              Standard interfaces for event handling.
psr/http-client                      1.0.0              Common interface for HTTP clients
psr/http-factory                     1.0.1              Common interfaces for PSR-7 HTTP message factories
psr/http-message                     1.0.1              Common interface for HTTP messages
psr/link                             1.0.0              Common interfaces for HTTP links
psr/log                              1.1.3              Common interface for logging libraries
psr/simple-cache                     1.0.1              Common interfaces for simple caching
ralouphie/getallheaders              3.0.3              A polyfill for getallheaders.
sensio/framework-extra-bundle        v5.5.5             This bundle provides a way to configure your controllers with annotations
smalot/cups-ipp                      v0.5               CUPS Implementation of IPP - PHP Client API
swiftmailer/swiftmailer              v6.2.3             Swiftmailer, free feature-rich PHP mailer
symfony/apache-pack                  v1.0.1             A pack for Apache support in Symfony
symfony/asset                        v5.0.8             Symfony Asset Component
symfony/browser-kit                  v5.0.8             Symfony BrowserKit Component
symfony/cache                        v5.0.8             Symfony Cache component with PSR-6, PSR-16, and tags
symfony/cache-contracts              v2.0.1             Generic abstractions related to caching
symfony/config                       v5.0.8             Symfony Config Component
symfony/console                      v5.0.8             Symfony Console Component
symfony/css-selector                 v5.0.8             Symfony CssSelector Component
symfony/debug-bundle                 v5.0.8             Symfony DebugBundle
symfony/debug-pack                   v1.0.8             A debug pack for Symfony projects
symfony/dependency-injection         v5.0.8             Symfony DependencyInjection Component
symfony/doctrine-bridge              v5.0.8             Symfony Doctrine Bridge
symfony/dom-crawler                  v5.0.8             Symfony DomCrawler Component
symfony/dotenv                       v5.0.8             Registers environment variables from a .env file
symfony/error-handler                v5.0.8             Symfony ErrorHandler Component
symfony/event-dispatcher             v5.0.8             Symfony EventDispatcher Component
symfony/event-dispatcher-contracts   v2.0.1             Generic abstractions related to dispatching event
symfony/expression-language          v5.0.8             Symfony ExpressionLanguage Component
symfony/filesystem                   v5.0.8             Symfony Filesystem Component
symfony/finder                       v5.0.8             Symfony Finder Component
symfony/flex                         v1.7.0             Composer plugin for Symfony
symfony/form                         v5.0.8             Symfony Form Component
symfony/framework-bundle             v5.0.8             Symfony FrameworkBundle
symfony/http-client                  v5.0.8             Symfony HttpClient component
symfony/http-client-contracts        v2.1.1             Generic abstractions related to HTTP clients
symfony/http-foundation              v5.0.8             Symfony HttpFoundation Component
symfony/http-kernel                  v5.0.8             Symfony HttpKernel Component
symfony/inflector                    v5.0.8             Symfony Inflector Component
symfony/intl                         v5.0.8             A PHP replacement layer for the C intl extension that includes additional data from the ICU library.
symfony/mailer                       v5.0.8             Symfony Mailer Component
symfony/maker-bundle                 v1.18.0            Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about w...
symfony/mime                         v5.0.8             A library to manipulate MIME messages
symfony/monolog-bridge               v5.0.8             Symfony Monolog Bridge
symfony/monolog-bundle               v3.5.0             Symfony MonologBundle
symfony/notifier                     v5.0.8             A library to notify messages
symfony/options-resolver             v5.0.8             Symfony OptionsResolver Component
symfony/orm-pack                     v1.0.8             A pack for the Doctrine ORM
symfony/phpunit-bridge               v5.0.8             Symfony PHPUnit Bridge
symfony/polyfill-intl-grapheme       v1.17.0            Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-icu            v1.17.0            Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-intl-idn            v1.17.0            Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer     v1.17.0            Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring            v1.17.0            Symfony polyfill for the Mbstring extension
symfony/polyfill-php73               v1.17.0            Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
symfony/process                      v5.0.8             Symfony Process Component
symfony/profiler-pack                v1.0.4             A pack for the Symfony web profiler
symfony/property-access              v5.0.8             Symfony PropertyAccess Component
symfony/property-info                v5.0.8             Symfony Property Info Component
symfony/routing                      v5.0.8             Symfony Routing Component
symfony/security-bundle              v5.0.8             Symfony SecurityBundle
symfony/security-core                v5.0.8             Symfony Security Component - Core Library
symfony/security-csrf                v5.0.8             Symfony Security Component - CSRF Library
symfony/security-guard               v5.0.8             Symfony Security Component - Guard
symfony/security-http                v5.0.8             Symfony Security Component - HTTP Integration
symfony/serializer                   v5.0.8             Symfony Serializer Component
symfony/serializer-pack              v1.0.3             A pack for the Symfony serializer
symfony/service-contracts            v2.0.1             Generic abstractions related to writing services
symfony/stopwatch                    v5.0.8             Symfony Stopwatch Component
symfony/string                       v5.0.8             Symfony String component
symfony/swiftmailer-bundle           v3.4.0             Symfony SwiftmailerBundle
symfony/test-pack                    v1.0.6             A pack for functional and end-to-end testing within a Symfony app
symfony/translation                  v5.0.8             Symfony Translation Component
symfony/translation-contracts        v2.0.1             Generic abstractions related to translation
symfony/twig-bridge                  v5.0.8             Symfony Twig Bridge
symfony/twig-bundle                  v5.0.8             Symfony TwigBundle
symfony/twig-pack                    v1.0.0             A Twig pack for Symfony projects
symfony/validator                    v5.0.8             Symfony Validator Component
symfony/var-dumper                   v5.0.8             Symfony mechanism for exploring and dumping PHP variables
symfony/var-exporter                 v5.0.8             A blend of var_export() + serialize() to turn any serializable data structure to plain PHP code
symfony/web-link                     v5.0.8             Symfony WebLink Component
symfony/web-profiler-bundle          v5.0.8             Symfony WebProfilerBundle
symfony/yaml                         v5.0.8             Symfony Yaml Component
twig/extra-bundle                    v3.0.3             A Symfony bundle for extra Twig extensions
twig/twig                            v3.0.3             Twig, the flexible, fast, and secure template language for PHP
webimpress/safe-writer               2.0.1              Tool to write files safely, to avoid race conditions
webmozart/assert                     1.8.0              Assertions to validate method input/output with nice error messages.

Thanks for your help.
Remy

@Fanny42
Copy link

Fanny42 commented Jun 22, 2020

By any chance, did you find a workaround ?

@r2my
Copy link
Author

r2my commented Jun 22, 2020

Unfortunately no.
I think php-http/socket-client has to be updated but nothing :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants