[pkg-php-pear] Bug#1039759: php-codesniffer: FTBFS with phpunit 10: PHP Fatal error: Declaration of PHP_CodeSniffer\Tests\TestSuite::run(?PHPUnit\Framework\TestResult $result = null): PHPUnit\Framework\TestResult must be compatible with PHPUnit\Framework\TestSuite::run(): void in /<<PKGBUILDDIR>>/PHP_CodeSniffer-3.7.1/tests/TestSuite.php on line 26
Athos Ribeiro
athoscribeiro at gmail.com
Wed Jun 28 22:02:04 BST 2023
Source: php-codesniffer
Version: 3.7.1-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear at lists.alioth.debian.org
Usertags: phpunit
Hi,
We will start the phpunit 10 transition in unstable soon. During a test
rebuild, php-codesniffer was found to FTBFS.
To reproduce this locally, you need to install the phpunit 10 package (and any
other dependency, which should also be available) from experimental on an
unstable system or build chroot.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_configure -O--buildsystem=phppear
> cp package.xml ./PHP_CodeSniffer-3.7.1/package.xml
> sed -i -e s/md5sum=\"\[^\"\]\*\"// -e s/sha1sum=\"\[^\"\]\*\"// ./PHP_CodeSniffer-3.7.1/package.xml
> sed -i -r -e '/(LICENCE|README|CONTRIBUTING)/d' \
> -e '/" role="doc" /d' \
> -e 's/pre-commit" role="script"/pre-commit" role="doc"/' */package.xml
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_build -O--buildsystem=phppear
> debian/rules override_dh_auto_test
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> cd PHP_CodeSniffer-* && phpunit
> PHP Fatal error: Declaration of PHP_CodeSniffer\Tests\TestSuite::run(?PHPUnit\Framework\TestResult $result = null): PHPUnit\Framework\TestResult must be compatible with PHPUnit\Framework\TestSuite::run(): void in /<<PKGBUILDDIR>>/PHP_CodeSniffer-3.7.1/tests/TestSuite.php on line 26
> make[1]: *** [debian/rules:13: override_dh_auto_test] Error 255
The full build logs and additional context is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/0/php-codesniffer/
A phpunit reverse-dependencies rebuild status is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/index.html
--
Athos Ribeiro
More information about the pkg-php-pear
mailing list