diff options
author | Remi Collet <remi@remirepo.net> | 2023-12-11 10:24:09 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-12-11 10:24:09 +0100 |
commit | 10775c2c97faf4986674db86603b3ea20e7bf4f0 (patch) | |
tree | d5126176eb0826cabadcc29d74b61eb27dfd944f /php-pear-PHP-CodeSniffer-rpm.patch | |
parent | 67e49ca08a1974cdaaf9d24dbe6cb83e40eba533 (diff) |
update to 3.8.0
sources from github instead or pear channel
Diffstat (limited to 'php-pear-PHP-CodeSniffer-rpm.patch')
-rw-r--r-- | php-pear-PHP-CodeSniffer-rpm.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/php-pear-PHP-CodeSniffer-rpm.patch b/php-pear-PHP-CodeSniffer-rpm.patch new file mode 100644 index 0000000..66736db --- /dev/null +++ b/php-pear-PHP-CodeSniffer-rpm.patch @@ -0,0 +1,32 @@ +diff -up ./bin/phpcbf.rpm ./bin/phpcbf +--- ./bin/phpcbf.rpm 2023-12-11 09:46:17.920584703 +0100 ++++ ./bin/phpcbf 2023-12-11 09:46:27.469951577 +0100 +@@ -8,11 +8,7 @@ + * @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence + */ + +-if (is_file(__DIR__.'/../autoload.php') === true) { +- include_once __DIR__.'/../autoload.php'; +-} else { +- include_once 'PHP/CodeSniffer/autoload.php'; +-} ++include_once '/usr/share/pear/PHP/CodeSniffer/autoload.php'; + + $runner = new PHP_CodeSniffer\Runner(); + $exitCode = $runner->runPHPCBF(); +diff -up ./bin/phpcs.rpm ./bin/phpcs +--- ./bin/phpcs.rpm 2023-12-11 09:45:10.918010545 +0100 ++++ ./bin/phpcs 2023-12-11 09:46:03.104015468 +0100 +@@ -8,11 +8,7 @@ + * @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence + */ + +-if (is_file(__DIR__.'/../autoload.php') === true) { +- include_once __DIR__.'/../autoload.php'; +-} else { +- include_once 'PHP/CodeSniffer/autoload.php'; +-} ++include_once '/usr/share/pear/PHP/CodeSniffer/autoload.php'; + + $runner = new PHP_CodeSniffer\Runner(); + $exitCode = $runner->runPHPCS(); |