From bd534f4aafa78da6a81b99500219c6386efd74c0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 3 Jun 2021 14:05:05 +0200 Subject: update to 3.0.0 rename to php-cs-fixer3 install php-cs-fixer3 command and use /usr/share/php/PhpCsFixer3 switch to Symfony 4 raise dependency on composer/semver 3.2 raise dependency on doctrine/annotations 1.12 --- php-cs-fixer3-autoload.patch | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'php-cs-fixer3-autoload.patch') diff --git a/php-cs-fixer3-autoload.patch b/php-cs-fixer3-autoload.patch index e24ef55..6c348f2 100644 --- a/php-cs-fixer3-autoload.patch +++ b/php-cs-fixer3-autoload.patch @@ -1,7 +1,7 @@ diff -up ./php-cs-fixer.rpm ./php-cs-fixer --- ./php-cs-fixer.rpm 2020-12-08 10:29:13.190515695 +0100 +++ ./php-cs-fixer 2020-12-08 10:30:26.191258296 +0100 -@@ -52,39 +52,7 @@ set_error_handler(static function ($seve +@@ -67,39 +67,7 @@ set_error_handler(static function ($seve } }); @@ -38,26 +38,14 @@ diff -up ./php-cs-fixer.rpm ./php-cs-fixer - unset($possibleFiles, $possibleFile, $file); -} -unset($require); -+require_once '/usr/share/php/PhpCsFixer/autoload.php'; ++require_once '/usr/share/php/PhpCsFixer3/autoload.php'; use Composer\XdebugHandler\XdebugHandler; use PhpCsFixer\Console\Application; -diff -up ./src/Console/Command/HelpCommand.php.rpm ./src/Console/Command/HelpCommand.php ---- ./src/Console/Command/HelpCommand.php.rpm 2020-12-08 07:57:58.000000000 +0100 -+++ ./src/Console/Command/HelpCommand.php 2020-12-08 10:29:13.190515695 +0100 -@@ -374,6 +374,8 @@ EOF - { - static $version = null; - -+ return Application::VERSION; -+ - if (null !== $version) { - return $version; - } diff -up ./tests/AutoReview/ProjectCodeTest.php.rpm ./tests/AutoReview/ProjectCodeTest.php --- ./tests/AutoReview/ProjectCodeTest.php.rpm 2020-12-08 07:57:59.000000000 +0100 +++ ./tests/AutoReview/ProjectCodeTest.php 2020-12-08 10:29:13.190515695 +0100 -@@ -690,8 +690,11 @@ final class ProjectCodeTest extends Test +@@ -721,8 +721,11 @@ final class ProjectCodeTest extends Test ->files() ->name('*.php') ->in(__DIR__.'/../../src') -- cgit