[pkg-php-pear] Bug#1082437: doctrine: FTBFS with php8.4_8.4.0~beta4-1: make[1]: *** [debian/rules:36: override_dh_auto_test] Error 2

Athos Ribeiro athoscribeiro at gmail.com
Sat Sep 21 03:13:31 BST 2024


Source: doctrine
Version: 2.19.7+dfsg-1
Severity: normal
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear at lists.alioth.debian.org
Usertags: php8.4

Hi,

During a test rebuild, doctrine was found to fail to build with
php8.4 8.4.0~beta4-1 available in experimental.

There are intentions to transition to php8.4 for trixie, please see #1074180.

To reproduce this locally, you need to install php8.4 and php-defaults from
experimental on an unstable system or build chroot.

Relevant part (hopefully):
> 
> There were 11 errors:
> 
> 1) Doctrine\Tests\ORM\Tools\EntityGeneratorTest::testGeneratedEntityClass
> doctrine_66eab8b870698\EntityGeneratorBook::setAuthor(): Implicitly marking parameter $author as nullable is deprecated, the explicit nullable type must be used instead
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:226
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:266
> 
> 2) Doctrine\Tests\ORM\Tools\EntityGeneratorTest::testBooleanDefaultValue
> doctrine_66eab8b870f5d\EntityGeneratorBook::setAuthor(): Implicitly marking parameter $author as nullable is deprecated, the explicit nullable type must be used instead
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:226
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:335
> 
> 3) Doctrine\Tests\ORM\Tools\EntityGeneratorTest::testEntityUpdatingWorks
> doctrine_66eab8b871776\EntityGeneratorBook::setAuthor(): Implicitly marking parameter $author as nullable is deprecated, the explicit nullable type must be used instead
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:226
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:354
> 
> 4) Doctrine\Tests\ORM\Tools\EntityGeneratorTest::testDoesNotRegenerateExistingMethodsWithDifferentCase
> doctrine_66eab8b871fab\EntityGeneratorBook::setAuthor(): Implicitly marking parameter $author as nullable is deprecated, the explicit nullable type must be used instead
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:226
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:397
> 
> 5) Doctrine\Tests\ORM\Tools\EntityGeneratorTest::testMethodDocBlockShouldStartWithBackSlash
> doctrine_66eab8b872631\EntityGeneratorBook::setAuthor(): Implicitly marking parameter $author as nullable is deprecated, the explicit nullable type must be used instead
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:226
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:415
> 
> 6) Doctrine\Tests\ORM\Tools\EntityGeneratorTest::testEntityExtendsStdClass
> doctrine_66eab8b872ad0\EntityGeneratorBook::setAuthor(): Implicitly marking parameter $author as nullable is deprecated, the explicit nullable type must be used instead
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:226
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:439
> 
> 7) Doctrine\Tests\ORM\Tools\EntityGeneratorTest::testLifecycleCallbacks
> doctrine_66eab8b872e86\EntityGeneratorBook::setAuthor(): Implicitly marking parameter $author as nullable is deprecated, the explicit nullable type must be used instead
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:226
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:451
> 
> 8) Doctrine\Tests\ORM\Tools\EntityGeneratorTest::testLoadMetadata
> doctrine_66eab8b8731e5\EntityGeneratorBook::setAuthor(): Implicitly marking parameter $author as nullable is deprecated, the explicit nullable type must be used instead
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:226
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:463
> 
> 9) Doctrine\Tests\ORM\Tools\EntityGeneratorTest::testLoadPrefixedMetadata
> doctrine_66eab8b873677\EntityGeneratorBook::setAuthor(): Implicitly marking parameter $author as nullable is deprecated, the explicit nullable type must be used instead
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:226
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:505
> 
> 10) Doctrine\Tests\ORM\Tools\EntityGeneratorTest::testGeneratedImmutableEmbeddablesClass
> doctrine_66eab8b8bb41f\EntityGeneratorTestEmbeddable::__construct(): Implicitly marking parameter $field4 as nullable is deprecated, the explicit nullable type must be used instead
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:930
> 
> 11) Doctrine\Tests\ORM\Tools\EntityGeneratorTest::testRegenerateEntityClass
> doctrine_66eab8b8bb849\EntityGeneratorBook::setAuthor(): Implicitly marking parameter $author as nullable is deprecated, the explicit nullable type must be used instead
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:220
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/EntityGeneratorTest.php:998
> 
> ERRORS!
> Tests: 3899, Assertions: 13538, Errors: 11, Skipped: 78, Incomplete: 2.
> make[1]: *** [debian/rules:36: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/php8.4-beta/2/doctrine/doctrine_2.19.7+dfsg-1+rebuild1726658696_amd64-2024-09-18T11:24:57Z.build



More information about the pkg-php-pear mailing list