Description of problem: PHP Fatal error: Uncaught ErrorException: Class 'PHPUnit_Framework_Error_Warning' not found in /usr/share/php/PHPUnitGoodPractices/Polyfill/aliases.php:13 Version-Release number of selected component (if applicable): php-cs-fixer-2.12.1-1.fc28.noarch How reproducible: always Steps to Reproduce: 1. php-cs-fixer fix Actual results: PHP Fatal error: Uncaught ErrorException: Class 'PHPUnit_Framework_Error_Warning' not found in /usr/share/php/PHPUnitGoodPractices/Polyfill/aliases.php:13 Stack trace: #0 [internal function]: {closure}(2, 'Class 'PHPUnit_...', '/usr/share/php/...', 13, Array) #1 /usr/share/php/PHPUnitGoodPractices/Polyfill/aliases.php(13): class_alias('PHPUnit_Framewo...', 'PHPUnit\\Framewo...') #2 /usr/share/php/Fedora/Autoloader/functions.php(56): require_once('/usr/share/php/...') #3 /usr/share/php/Fedora/Autoloader/Dependencies.php(78): Fedora\Autoloader\requireFile('/usr/share/php/...') #4 /usr/share/php/Fedora/Autoloader/Dependencies.php(100): Fedora\Autoloader\Dependencies::process(Array, true) #5 /usr/share/php/PHPUnitGoodPractices/Polyfill/autoload.php(6): Fedora\Autoloader\Dependencies::required(Array) #6 /usr/share/php/Fedora/Autoloader/functions.php(56): require_once('/usr/share/php/...') #7 /usr/share/php/Fedora/Autoloader/Dependencies.php(78): Fedora\Autoloader\requireFile('/usr/share/php/...') #8 /usr/share/php/Fedora/Autoloade in /usr/share/php/PHPUnitGoodPractices/Polyfill/aliases.php on line 13 Fatal error: Uncaught ErrorException: Class 'PHPUnit_Framework_Error_Warning' not found in /usr/share/php/PHPUnitGoodPractices/Polyfill/aliases.php:13 Stack trace: #0 [internal function]: {closure}(2, 'Class 'PHPUnit_...', '/usr/share/php/...', 13, Array) #1 /usr/share/php/PHPUnitGoodPractices/Polyfill/aliases.php(13): class_alias('PHPUnit_Framewo...', 'PHPUnit\\Framewo...') #2 /usr/share/php/Fedora/Autoloader/functions.php(56): require_once('/usr/share/php/...') #3 /usr/share/php/Fedora/Autoloader/Dependencies.php(78): Fedora\Autoloader\requireFile('/usr/share/php/...') #4 /usr/share/php/Fedora/Autoloader/Dependencies.php(100): Fedora\Autoloader\Dependencies::process(Array, true) #5 /usr/share/php/PHPUnitGoodPractices/Polyfill/autoload.php(6): Fedora\Autoloader\Dependencies::required(Array) #6 /usr/share/php/Fedora/Autoloader/functions.php(56): require_once('/usr/share/php/...') #7 /usr/share/php/Fedora/Autoloader/Dependencies.php(78): Fedora\Autoloader\requireFile('/usr/share/php/...') #8 /usr/share/php/Fedora/Autoloade in /usr/share/php/PHPUnitGoodPractices/Polyfill/aliases.php on line 13 Expected results: php-cs-fixer should fix code.
As a temporary workaround try removing the optional dep (php-phpunitgoodpractices-polyfill) The proper fix will require the new php-phpunitgoodpractices-traits package. Working on it.
Nightmare of circular dependency... I will update php-phpunitgoodpractices-polyfill to also include php-phpunitgoodpractices-trait
https://src.fedoraproject.org/cgit/rpms/php-phpunitgoodpractices-polyfill.git/commit/?id=b6d9446cbaecfe0c89cae219d31a4dafdc449460
php-phpunitgoodpractices-polyfill-1.1.0-2.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-aac309428b
php-phpunitgoodpractices-polyfill-1.1.0-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-1f0ae867b7
php-phpunitgoodpractices-polyfill-1.1.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-2018-aac309428b
php-phpunitgoodpractices-polyfill-1.1.0-2.fc28 has been pushed to the Fedora 28 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-2018-1f0ae867b7
php-phpunitgoodpractices-polyfill-1.1.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.
php-phpunitgoodpractices-polyfill-1.1.0-2.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.