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

Incorrect library version outputted when installed with prefer-lowest #2930

Closed
szymach opened this issue Dec 18, 2017 · 7 comments
Closed

Incorrect library version outputted when installed with prefer-lowest #2930

szymach opened this issue Dec 18, 2017 · 7 comments

Comments

@szymach
Copy link

szymach commented Dec 18, 2017

Q A
PHPUnit version All since 4.x
PHP version 5.4 / 7.1
Installation Method Composer

This is a continuation of #2929, since it applies also to 5.x and 6.x versions. Copy-pasting previous text:

Hello,
When installing phpunit with composer update --prefer-lowest, some random version of the library is being outputted. Example:

"phpunit/phpunit": "^5.7|^6.5"

will output:

PHPUnit 1.0.1-56-g68da2c7 by Sebastian Bergmann and contributors.

after calling bin/phpunit. As far as I can tell, having just a single version of phpunit will not produce this error, it only happens when you specify a lower and a higher version.

@sebastianbergmann
Copy link
Owner

Please post the output of composer info -D | sort.

sebastianbergmann added a commit that referenced this issue Dec 18, 2017
@sebastianbergmann
Copy link
Owner

I bumped the required version in 83a7064. I do not know what else I could do.

@szymach
Copy link
Author

szymach commented Dec 18, 2017

Here's the output of composer info -D | sort:

behat/behat                            v3.1.0             Scenario-oriented BDD framework for PHP 5.3
behat/mink-browserkit-driver           v1.3.1             Symfony2 BrowserKit driver for Mink framework
behat/mink-extension                   v2.2               Mink extension for Behat
behat/mink-selenium2-driver            v1.3.0             Selenium2 (WebDriver) driver for Mink framework
behat/mink                             v1.7.1             Browser controller/emulator abstraction for PHP
behat/symfony2-extension               2.1.1              Symfony2 framework extension for Behat
bossa/phpspec2-expect                  2.2.0              Helper that decorates any SUS with a phpspec lazy object wrapper
dama/doctrine-test-bundle              v4.0.0             Symfony 2/3 bundle to isolate doctrine database tests and improve test performance
doctrine/data-fixtures                 v1.0.1             Data Fixtures for all Doctrine Object Managers
doctrine/doctrine-bundle               v1.5.1             Symfony DoctrineBundle
doctrine/orm                           v2.5.2             Object-Relational-Mapper for PHP
egeloen/ckeditor-bundle                6.0.0              Provides a CKEditor integration for your Symfony2 Project.
fsi/doctrine-extensions-bundle         dev-master 86cdd24 FSi Doctrine extensions bundle.
fsi/doctrine-extensions                dev-master 2bcdb12 FSi Behavioral Doctrine Extensions
fsi/form-extensions-bundle             dev-master 2322c57 FSi extensions for Symfony form component.
incenteev/composer-parameter-handler   v2.1.2             Composer script handling your ignored parameter file
phpspec/phpspec                        3.2.2              Specification-oriented BDD framework for PHP 5.6+
phpspec/prophecy                       v1.7.0             Highly opinionated mocking framework for PHP 5.3+
phpunit/phpunit                        5.7.0              The PHP Unit Testing framework.
sensio/distribution-bundle             v5.0.0             Base bundle for Symfony Distributions
sensio/framework-extra-bundle          v3.0.11            This bundle provides a way to configure your controllers with annotations
sensiolabs/behat-page-object-extension v2.0.0             Page object extension for Behat
squizlabs/php_codesniffer              3.0.0              PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defin...
symfony/monolog-bundle                 2.12.0             Symfony MonologBundle
symfony/phpunit-bridge                 v4.0.0             Symfony PHPUnit Bridge
symfony/symfony                        v3.0.0             The Symfony PHP framework
twig/twig                              v1.34.0            Twig, the flexible, fast, and secure template language for

@sebastianbergmann
Copy link
Owner

Sorry, I meant composer info | sort.

@szymach
Copy link
Author

szymach commented Dec 18, 2017

Here you go:

behat/behat                            v3.1.0             Scenario-oriented BDD framework for PHP 5.3
behat/gherkin                          v4.4.0             Gherkin DSL parser for PHP 5.3
behat/mink-browserkit-driver           v1.3.1             Symfony2 BrowserKit driver for Mink framework
behat/mink-extension                   v2.2               Mink extension for Behat
behat/mink-selenium2-driver            v1.3.0             Selenium2 (WebDriver) driver for Mink framework
behat/mink                             v1.7.1             Browser controller/emulator abstraction for PHP
behat/symfony2-extension               2.1.1              Symfony2 framework extension for Behat
behat/transliterator                   v1.0.0             String transliterator
bossa/phpspec2-expect                  2.0.0              Helper that decorates any SUS with a phpspec lazy object wrapper
dama/doctrine-test-bundle              v4.0.0             Symfony 2/3 bundle to isolate doctrine database tests and improve test performance
dflydev/markdown                       v1.0.0             PHP Markdown & Extra
doctrine/annotations                   v1.0               Docblock Annotations Parser
doctrine/cache                         v1.4.2             Caching library offering an object-oriented API for many cache backends
doctrine/collections                   v1.2               Collections Abstraction library
doctrine/common                        v2.5.0             Common Library for Doctrine projects
doctrine/data-fixtures                 v1.0.1             Data Fixtures for all Doctrine Object Managers
doctrine/dbal                          v2.5.0             Database Abstraction Layer
doctrine/doctrine-bundle               v1.5.1             Symfony DoctrineBundle
doctrine/doctrine-cache-bundle         1.2.0              Symfony Bundle for Doctrine Cache
doctrine/inflector                     v1.0               Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator                  1.0.4              A small, lightweight utility to instantiate objects in PHP without invoking their constru...
doctrine/lexer                         v1.0               Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
doctrine/orm                           v2.5.2             Object-Relational-Mapper for PHP
egeloen/ckeditor-bundle                5.0.0              Provides a CKEditor integration for your Symfony2 Project.
egeloen/json-builder                   2.0.1              JSON builder with escaping control for PHP 5.3+
fsi/doctrine-extensions-bundle         dev-master 86cdd24 FSi Doctrine extensions bundle.
fsi/doctrine-extensions                dev-master 2bcdb12 FSi Behavioral Doctrine Extensions
fsi/form-extensions-bundle             dev-master 2322c57 FSi extensions for Symfony form component.
incenteev/composer-parameter-handler   v2.1.2             Composer script handling your ignored parameter file
instaclick/php-webdriver               1.1                PHP WebDriver for Selenium 2
jdorn/sql-formatter                    v1.1.0             a PHP SQL highlighting library
knplabs/gaufrette                      v0.1.7             PHP5 library that provides a filesystem abstraction layer
knplabs/knp-gaufrette-bundle           0.3.0              Allows to easily use the Gaufrette library in a Symfony project
monolog/monolog                        1.18.0             Sends your logs to files, sockets, inboxes, databases and various web services
ocramius/proxy-manager                 1.0.0              A library providing utilities to generate, instantiate and generally operate with Object ...
paragonie/random_compat                v1.0.0             PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
phpdocumentor/reflection-docblock      2.0.0             
phpspec/php-diff                       v1.0.1             A comprehensive library for generating differences between two hashable objects (strings ...
phpspec/phpspec                        3.0.0              Specification-oriented BDD framework for PHP 5.6+
phpspec/prophecy                       v1.7.0             Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage              2.1.0              Library that provides collection, processing, and rendering functionality for PHP code co...
phpunit/php-file-iterator              1.4.0              FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-text-template              1.2.0              Simple template engine.
phpunit/php-timer                      1.0.6              Utility class for timing
phpunit/php-token-stream               1.3.0              Wrapper around PHP's tokenizer extension.
phpunit/phpunit-mock-objects           2.3.0              Mock Object library for PHPUnit
phpunit/phpunit                        4.8.35             The PHP Unit Testing framework.
psr/log                                1.0.0              Common interface for logging libraries
sebastian/comparator                   1.2.2              Provides the functionality to compare PHP values for equality
sebastian/diff                         1.2.0              Diff implementation
sebastian/environment                  1.3.0              Provides functionality to handle HHVM/PHP environments
sebastian/exporter                     1.2.0              Provides the functionality to export PHP variables for visualization
sebastian/global-state                 1.0.0              Snapshotting of global state
sebastian/recursion-context            1.0.0              Provides functionality to recursively process PHP variables
sebastian/version                      1.0.0              Library that helps with managing the version number of Git-hosted PHP projects
sensio/distribution-bundle             v5.0.0             Base bundle for Symfony Distributions
sensio/framework-extra-bundle          v3.0.11            This bundle provides a way to configure your controllers with annotations
sensiolabs/behat-page-object-extension v2.0.0             Page object extension for Behat
sensiolabs/security-checker            v3.0.2             A security checker for your composer.lock
squizlabs/php_codesniffer              3.0.0              PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defin...
symfony/monolog-bundle                 2.12.0             Symfony MonologBundle
symfony/phpunit-bridge                 v4.0.0             Symfony PHPUnit Bridge
symfony/polyfill-intl-icu              v1.0.0             Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring              v1.0.0             Symfony polyfill for the Mbstring extension
symfony/polyfill-php56                 v1.0.0             Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70                 v1.0.0             Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-util                  v1.0.0             Symfony utilities for portability of PHP codes
symfony/security-acl                   v2.8.0             Symfony Security Component - ACL (Access Control List)
symfony/symfony                        v3.0.0             The Symfony PHP framework
twig/twig                              v1.34.0            Twig, the flexible, fast, and secure template language for PHP
zendframework/zend-code                2.2.6              provides facilities to generate arbitrary code using an object oriented interface
zendframework/zend-eventmanager        2.2.6             
zendframework/zend-stdlib              2.2.6

@sebastianbergmann
Copy link
Owner

The issue is caused by a bug in sebastian/version that was fixed long ago. There is nothing I can do here.

@szymach
Copy link
Author

szymach commented Dec 18, 2017

Alright, thank you for investigating anyway :)

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