Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1529459

Summary: missing dependency on php-mikey179-vfsstream
Product: [Fedora] Fedora Reporter: François Kooman <fkooman>
Component: php-cs-fixerAssignee: Remi Collet <fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: php-cs-fixer-2.9.0-2.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-04 23:58:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description François Kooman 2017-12-28 08:08:43 UTC
Description of problem:

$ php-cs-fixer fix
PHP Fatal error:  Uncaught RuntimeException: File not found: '/usr/share/php/org/bovigo/vfs/autoload.php' in /usr/share/php/Fedora/Autoloader/functions.php:58
Stack trace:
#0 /usr/share/php/Fedora/Autoloader/Dependencies.php(78): Fedora\Autoloader\requireFile('/usr/share/php/...')
#1 /usr/share/php/Fedora/Autoloader/Dependencies.php(100): Fedora\Autoloader\Dependencies::process(Array, true)
#2 /usr/share/php/PhpCsFixer/autoload.php(66): Fedora\Autoloader\Dependencies::required(Array)
#3 /usr/bin/php-cs-fixer(42): require_once('/usr/share/php/...')
#4 {main}
  thrown in /usr/share/php/Fedora/Autoloader/functions.php on line 58

Version-Release number of selected component (if applicable):

php-cs-fixer-2.9.0-1.fc27.noarch

How reproducible:

Always

Steps to Reproduce:
1. update to 2.9.0
2. run php-cs-fixer fix


My .php_cs.dist file:

<?php

return PhpCsFixer\Config::create()
    ->setRiskyAllowed(true)
    ->setRules(
        [
            '@Symfony' => true,
            '@Symfony:risky' => true,
            'ordered_imports' => true,
            'ordered_class_elements' => true,
            'array_syntax' => ['syntax' => 'short'],
            'phpdoc_order' => true,
            'phpdoc_no_empty_return' => false,
            'phpdoc_add_missing_param_annotation' => true,
            'strict_comparison' => true,
            'strict_param' => true,
            'php_unit_strict' => true,
        ]
    )
    ->setFinder(PhpCsFixer\Finder::create()->in(__DIR__));

Comment 2 Fedora Update System 2017-12-28 08:21:30 UTC
php-cs-fixer-2.9.0-2.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-584fd398b2

Comment 3 Remi Collet 2017-12-28 08:29:06 UTC
Thanks for the notice, this dependency is only required at buildtime, so should have been added only in autoloader used for test, not in the one used at runtime.

Should be fixed now, please try the new build (with php-mikey179-vfsstream removed)

Comment 4 Fedora Update System 2017-12-29 19:31:30 UTC
php-cs-fixer-2.9.0-2.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-584fd398b2

Comment 5 Fedora Update System 2018-01-04 23:58:53 UTC
php-cs-fixer-2.9.0-2.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.