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

Weird Class name #17

Closed
barthy-koeln opened this issue Apr 23, 2016 · 8 comments
Closed

Weird Class name #17

barthy-koeln opened this issue Apr 23, 2016 · 8 comments
Assignees
Milestone

Comments

@barthy-koeln
Copy link

barthy-koeln commented Apr 23, 2016

Hello,

When using composer update or composer install the Versions class is created like it should in my project (Symfony 2.8) except for one thing:

The class is called Versions_composer_tmp0

This breaks the entire project as Smyfony's autoloader can't find the class.

[RuntimeException]

The autoloader expected class "PackageVersions\Versions" to be defined in file ".../vendor/ocramius/package-versions/src/PackageVersions/Versions.php".

The file was found but the class was not in it, the class name or namespace probably has a typo.

@Ocramius
Copy link
Owner

Ocramius commented Apr 23, 2016

@BarthyB I was working on that exactly now. See composer/composer#5237 and #16

If you can please look at your bash logs and reproduce the error precisely, that would be awesome to isolate and reproduce composer/composer#5237

@Ocramius Ocramius self-assigned this Apr 23, 2016
@Ocramius Ocramius added this to the 1.0.4 milestone Apr 23, 2016
@barthy-koeln
Copy link
Author

I did nothing else than requiring another package

composer require oneup/uploader-bundle

in Symfony this triggers methods like:

Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

And it's exaclty during clearCache that it throws the RuntimeException mentioned above.
Alternatively any other symfony operation would trigger this error (e.g. php app/console server:run, ...)

@Ocramius
Copy link
Owner

Do you have a composer.lock and composer.json that I can use to experiment the transition myself?

@barthy-koeln
Copy link
Author

(zip because .json & .lock are not supported by GitHub)
composer_files_barthy_b.zip

@Ocramius
Copy link
Owner

Reproduced the issue. I had to edit the composer.json as following, since I don't have your same files (and some scripts rely on them):

{
    "name": "barthy/mwb",
    "license": "proprietary",
    "type": "project",
    "require": {
        "php": ">=5.3.9",
        "symfony/symfony": "2.8.*",
        "doctrine/orm": "^2.4.8",
        "doctrine/doctrine-bundle": "~1.4",
        "symfony/swiftmailer-bundle": "~2.3",
        "symfony/monolog-bundle": "~2.4",
        "sensio/distribution-bundle": "~5.0",
        "sensio/framework-extra-bundle": "^3.0.2",
        "incenteev/composer-parameter-handler": "~2.0",
        "symfony/assetic-bundle": "^2.7",
        "vich/uploader-bundle": "^1.0",
        "symfony/translation": "^2.8",
        "javiereguiluz/easyadmin-bundle": "^1.12",
        "egeloen/ckeditor-bundle": "^4.0",
        "twig/extensions": "^1.3",
        "nikic/php-parser": "0.9.*",
        "jms/translation-bundle": "1.1.*",
        "jms/i18n-routing-bundle": "^2.0",
        "jms/di-extra-bundle": "^1.7",
        "friendsofsymfony/user-bundle": "~2.0@dev",
        "friendsofsymfony/jsrouting-bundle": "^1.6"
    },
    "require-dev": {
        "sensio/generator-bundle": "~3.0",
        "symfony/phpunit-bridge": "~2.7"
    },
    "minimum-stability": "stable"
}

Then running composer require oneup/uploader-bundle -vvv

∙ composer require oneup/uploader-bundle -vvv                       19:05  ocramius@Marcos-MacBook-Pro
Running b6680b6f2ab831f3918ca3be42d5cb2594f830ad (2016-04-21 21:16:05) with PHP 7.0.5 on Darwin / 15.4.0
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Reading ./composer.json
Loading config file /Users/ocramius/.composer/config.json
Loading config file /Users/ocramius/.composer/auth.json
Loading config file ./composer.json
Checked CA file /private/var/folders/c_/3k15s94s6bj35qywyr7c74mm0000gn/T/composer-cacert-bcf331364fef73d53e4368ba519a6c3fcb21ea7836c3d8efad4ec32731e8152a.pem: valid
Executing command (/Users/ocramius/Documents/Projects/PackageVersions/foo): git branch --no-color --no-abbrev -v
Reading /Users/ocramius/.composer/composer.json
Loading config file /Users/ocramius/.composer/config.json
Loading config file /Users/ocramius/.composer/auth.json
Loading config file /Users/ocramius/.composer/composer.json
Loading config file /Users/ocramius/.composer/auth.json
Reading /Users/ocramius/Documents/Projects/PackageVersions/foo/vendor/composer/installed.json
Reading /Users/ocramius/.composer/vendor/composer/installed.json
Loading plugin PackageVersions\Installer
Downloading https://packagist.org/packages.json
Writing /Users/ocramius/.composer/cache/repo/https---packagist.org/packages.json into cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-2013.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-2014.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-2015.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-2015-07.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-2015-10.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-2016-01.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-2016-04.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-archived.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-latest.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-oneup$uploader-bundle.json from cache
Using version ^1.5 for oneup/uploader-bundle
./composer.json has been updated
Reading ./composer.json
Loading config file /Users/ocramius/.composer/config.json
Loading config file /Users/ocramius/.composer/auth.json
Loading config file ./composer.json
Executing command (/Users/ocramius/Documents/Projects/PackageVersions/foo): git branch --no-color --no-abbrev -v
Reading /Users/ocramius/.composer/composer.json
Loading config file /Users/ocramius/.composer/config.json
Loading config file /Users/ocramius/.composer/auth.json
Loading config file /Users/ocramius/.composer/composer.json
Loading config file /Users/ocramius/.composer/auth.json
Reading /Users/ocramius/Documents/Projects/PackageVersions/foo/vendor/composer/installed.json
Reading /Users/ocramius/.composer/vendor/composer/installed.json
Loading plugin PackageVersions\Installer_composer_tmp0
Reading ./composer.lock
Loading composer repositories with package information
Downloading https://packagist.org/packages.json
Writing /Users/ocramius/.composer/cache/repo/https---packagist.org/packages.json into cache
Updating dependencies (including require-dev)
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-2013.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-2014.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-2015.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-2015-07.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-2015-10.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-2016-01.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-2016-04.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-archived.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/p-provider-latest.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-ocramius$package-versions.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-doctrine$lexer.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-doctrine$annotations.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-doctrine$collections.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-doctrine$inflector.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-doctrine$cache.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-doctrine$common.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-doctrine$dbal.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-twig$twig.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-psr$log.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$polyfill-apcu.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$polyfill-intl-icu.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$polyfill-mbstring.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$polyfill-php54.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$polyfill-php55.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$polyfill-php56.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$polyfill-php70.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$polyfill-util.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$security-acl.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$symfony.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$intl.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-ircmaxell$password-compat.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-paragonie$random-compat.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$security-core.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$icu.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$doctrine-bridge.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-doctrine$doctrine-cache-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-doctrine$instantiator.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$property-access.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-egeloen$json-builder.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$dependency-injection.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$form.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$framework-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-egeloen$ckeditor-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$event-dispatcher.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$locale.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$options-resolver.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$config.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$http-kernel.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$filesystem.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$routing.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$stopwatch.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$translation.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$templating.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$http-foundation.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$finder.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$security-csrf.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$asset.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$class-loader.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$debug.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-willdurand$jsonp-callback-validator.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$console.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$serializer.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-friendsofsymfony$jsrouting-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$security-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$twig-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-friendsofsymfony$user-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$security.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$twig-bridge.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$yaml.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-incenteev$composer-parameter-handler.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-twig$extensions.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-sensio$framework-extra-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-sensiolabs$security-checker.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$process.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-sensio$distribution-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-pagerfanta$pagerfanta.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-doctrine$orm.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-jdorn$sql-formatter.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-doctrine$doctrine-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-javiereguiluz$easyadmin-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-jms$cg.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-jms$metadata.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-jms$aop-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-jms$di-extra-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-jms$i18n-routing-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-nikic$php-parser.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-jms$translation-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-oneup$uploader-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-kriswallsmith$assetic.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$assetic-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-monolog$monolog.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$monolog-bridge.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$monolog-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-swiftmailer$swiftmailer.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$swiftmailer-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-zendframework$zend-eventmanager.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-zendframework$zend-code.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-zendframework$zend-stdlib.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-athletic$athletic.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-zendframework$zend-hydrator.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-ocramius$proxy-manager.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-squizlabs$php-codesniffer.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-vich$uploader-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-gregwar$cache.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-gregwar$image.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-sensio$generator-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$phpunit-bridge.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$swiftmailer-bridge.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-phpdocumentor$reflection.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$browser-kit.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$css-selector.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$debug-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$dom-crawler.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$expression-language.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$ldap.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$property-info.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$proxy-manager-bridge.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$security-guard.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$security-http.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$validator.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$var-dumper.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-symfony$web-profiler-bundle.json from cache
Reading /Users/ocramius/.composer/cache/repo/https---packagist.org/provider-kriswallsmith$spork.json from cache
Resolving dependencies through SAT
Dependency resolution completed in 5.571 seconds
Analyzed 7059 packages to resolve dependencies
Analyzed 313454 rules to resolve dependencies
Nothing to install or update
Resolving dependencies through SAT
Dependency resolution completed in 0.005 seconds
Reading /Users/ocramius/Documents/Projects/PackageVersions/foo/vendor/composer/installed.json
Executing command (/Users/ocramius/Documents/Projects/PackageVersions/foo/vendor/friendsofsymfony/user-bundle): git log -n1 --pretty=%ct '16b04c49af05dd3fb381e4abe04f0e5e231ac76d'
Writing lock file
Generating autoload files
ocramius/package-versions:  Generating version class...
Reading ./composer.lock
ocramius/package-versions: ...done generating version class
ocramius/package-versions:  Generating version class...
ocramius/package-versions: ...done generating version class

Then the generated vendor/ocramius/package-versions/src/PackageVersions/Versions.php looks like:

<?php

namespace PackageVersions;

/**
 * This class is generated by ocramius/package-versions, specifically by
 * @see \PackageVersions\Installer
 *
 * This file is overwritten at every run of `composer install` or `composer update`.
 */
final class Versions_composer_tmp0
{
    const VERSIONS = array (
  'doctrine/annotations' => 'v1.2.7@f25c8aab83e0c3e976fd7d19875f198ccf2f7535',
  'doctrine/cache' => 'v1.6.0@f8af318d14bdb0eff0336795b428b547bd39ccb6',
  'doctrine/collections' => 'v1.3.0@6c1e4eef75f310ea1b3e30945e9f06e652128b8a',
  'doctrine/common' => 'v2.6.1@a579557bc689580c19fee4e27487a67fe60defc0',
  'doctrine/dbal' => 'v2.5.4@abbdfd1cff43a7b99d027af3be709bc8fc7d4769',
  'doctrine/doctrine-bundle' => '1.6.2@e9c2ccf573b59b7cea566390f34254fed3c20ed9',
  'doctrine/doctrine-cache-bundle' => '1.3.0@18c600a9b82f6454d2e81ca4957cdd56a1cf3504',
  'doctrine/inflector' => 'v1.1.0@90b2128806bfde671b6952ab8bea493942c1fdae',
  'doctrine/instantiator' => '1.0.5@8e884e78f9f0eb1329e445619e04456e64d8051d',
  'doctrine/lexer' => 'v1.0.1@83893c552fd2045dd78aef794c31e694c37c0b8c',
  'doctrine/orm' => 'v2.5.4@bc4ddbfb0114cb33438cc811c9a740d8aa304aab',
  'egeloen/ckeditor-bundle' => '4.0.3@161f680774103468e24f8c5f56a8f22e7a2bfa21',
  'egeloen/json-builder' => '2.0.1@c6afb2c53ac1070144d5d3330d5f86567b132d23',
  'friendsofsymfony/jsrouting-bundle' => '1.6.0@2f52d924692647db02bbcb27c159fef03bf000c9',
  'friendsofsymfony/user-bundle' => 'dev-master@16b04c49af05dd3fb381e4abe04f0e5e231ac76d',
  'incenteev/composer-parameter-handler' => 'v2.1.2@d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc',
  'ircmaxell/password-compat' => 'v1.0.4@5c5cde8822a69545767f7c7f3058cb15ff84614c',
  'javiereguiluz/easyadmin-bundle' => 'v1.12.6@4009d0536b74db049fa241315634e51cb010c4fc',
  'jdorn/sql-formatter' => 'v1.2.17@64990d96e0959dff8e059dfcdc1af130728d92bc',
  'jms/aop-bundle' => '1.2.0@78000d007e74283cc564a58e184d7f62548ad394',
  'jms/cg' => '1.1.0@0af1113c7409b8636c5244bbae10b2e0ff792e9c',
  'jms/di-extra-bundle' => '1.7.1@27c3fc7150550ccc0731290b2c1ceb57449f909d',
  'jms/i18n-routing-bundle' => '2.0.0@9e87d4da564069ffe67234c4326e138236519fc2',
  'jms/metadata' => '1.5.1@22b72455559a25777cfd28c4ffda81ff7639f353',
  'jms/translation-bundle' => '1.1.0@6f03035a38badaf8c48767c7664c3196df1eebdf',
  'kriswallsmith/assetic' => 'v1.3.2@9928f7c4ad98b234e3559d1049abd13387f86db5',
  'monolog/monolog' => '1.19.0@5f56ed5212dc509c8dc8caeba2715732abb32dbf',
  'nikic/php-parser' => 'v0.9.1@b1cc9ce676b4350b23d0fafc8244d08eee2fe287',
  'ocramius/package-versions' => '1.0.3@a108adf44c4663bfb72858ea2fcd174acddd317e',
  'ocramius/proxy-manager' => '2.0.1@6c89b7bd6039d8047b1473e2074cb56baa4bc15d',
  'oneup/uploader-bundle' => '1.5.0@f5acda92ea3d6aa482408d1ef65a69f46efb3802',
  'pagerfanta/pagerfanta' => 'v1.0.3@a874d3612d954dcbbb49e5ffe178890918fb76fb',
  'paragonie/random_compat' => 'v1.4.1@c7e26a21ba357863de030f0b9e701c7d04593774',
  'psr/log' => '1.0.0@fe0936ee26643249e916849d48e3a51d5f5e278b',
  'sensio/distribution-bundle' => 'v5.0.5@3a160355bb1364da55ed9e415c1aa1fa8d457b6f',
  'sensio/framework-extra-bundle' => 'v3.0.16@507a15f56fa7699f6cc8c2c7de4080b19ce22546',
  'sensiolabs/security-checker' => 'v3.0.2@21696b0daa731064c23cfb694c60a2584a7b6e93',
  'swiftmailer/swiftmailer' => 'v5.4.1@0697e6aa65c83edf97bb0f23d8763f94e3f11421',
  'symfony/assetic-bundle' => 'v2.8.0@aa5b4f8b712f38745928fa845ddb73300bb2af6d',
  'symfony/monolog-bundle' => '2.11.1@e7caf4936c7be82bc6d68df87f1d23a0d5bf6e00',
  'symfony/polyfill-apcu' => 'v1.1.1@0c901e4e65a2f7ece68f0fd249b56d6ad3adc214',
  'symfony/polyfill-intl-icu' => 'v1.1.1@8328069d9f5322f0e7b3c3518485acfdc94c3942',
  'symfony/polyfill-mbstring' => 'v1.1.1@1289d16209491b584839022f29257ad859b8532d',
  'symfony/polyfill-php54' => 'v1.1.1@9ba741ca01c77282ecf5796c2c1d667f03454ffb',
  'symfony/polyfill-php55' => 'v1.1.1@b4f3f07d91702f8f926339fc4fcf81671d8c27e6',
  'symfony/polyfill-php56' => 'v1.1.1@4d891fff050101a53a4caabb03277284942d1ad9',
  'symfony/polyfill-php70' => 'v1.1.1@386c1be9cad3ab531425211919e78c37971be4ce',
  'symfony/polyfill-util' => 'v1.1.1@8de62801aa12bc4dfcf85eef5d21981ae7bb3cc4',
  'symfony/security-acl' => 'v2.8.0@4a3f7327ad215242c78f6564ad4ea6d2db1b8347',
  'symfony/swiftmailer-bundle' => 'v2.3.11@5e1a90f28213231ceee19c953bbebc5b5b95c690',
  'symfony/symfony' => 'v2.8.4@9e14f9f4869c19188a376eab61d9a1c1f1fee347',
  'twig/extensions' => 'v1.3.0@449e3c8a9ffad7c2479c7864557275a32b037499',
  'twig/twig' => 'v1.24.0@3e5aa30ebfbafd5951fb1b01e338e1800ce7e0e8',
  'vich/uploader-bundle' => '1.0.1@85300145a610b3a087a1f5de5e2d31dce4556eab',
  'willdurand/jsonp-callback-validator' => 'v1.1.0@1a7d388bb521959e612ef50c5c7b1691b097e909',
  'zendframework/zend-code' => '3.0.1@09405eb04b7199733219cbf1f0803883a7bab842',
  'zendframework/zend-eventmanager' => '3.0.1@5c80bdee0e952be112dcec0968bad770082c3a6e',
  'gregwar/cache' => 'v1.0.10@0a1a02e4943e95f491b3d2395609247385975622',
  'gregwar/image' => 'v2.0.20@2c6bf2fb3b0eb844f0568d6ee55eeb86fc799414',
  'sensio/generator-bundle' => 'v3.0.6@ac91535054d025937d897d78ebb5fc2da5e955a4',
  'symfony/phpunit-bridge' => 'v2.8.4@a967db6a4cd5d276cf849d01b29dba559e149978',
  'barthy/mwb' => 'dev-workaround/composer/composer#5237-class-parsing@083846658edac9dbdaaf22811caf395491a353c0',
);

    private function __construct()
    {
    }

    /**
     * @throws \OutOfBoundsException if a version cannot be located
     */
    public static function getVersion(string $packageName) : string
    {
        if (! isset(self::VERSIONS[$packageName])) {
            throw new \OutOfBoundsException(
                'Required package "' . $packageName . '" is not installed: cannot detect its version'
            );
        }

        return self::VERSIONS[$packageName];
    }
}

@Ocramius
Copy link
Owner

B̝u̸̫͓ͅg͖̬̗̘͈s̯̖͚͔ ̛i͕n̖̟̪ ̯̖ṛ̲̮͡e͖͕g̤̠̻̬ẹx̺-͓̘͕͟b̫̜̭͙̀a̵̮̺͍s҉͎e̜̖͠d͕͍͍̺̙̼̙ ̳̗̖̬̜còḓ̢̟͇̯̼ḙ͈ ̧͔̤̪̫s̫ca̸͇̘̩̮n̶̥̝̮̠̩n̫͉̯͜e͉̦͙̝̤r̫s̕

@Ocramius
Copy link
Owner

Findings reported at composer/composer#5237 (comment) - meanwhile, I will release a workaround.

@Ocramius
Copy link
Owner

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

No branches or pull requests

2 participants