[pkg-php-pear] Bug#1060946: php-phpstan-phpdoc-parser: FTBFS: TypeError: PhpParser\Lexer\Emulative::__construct(): Argument #1 ($phpVersion) must be of type ?PhpParser\PhpVersion, array given, called in /<<PKGBUILDDIR>>/tests/PHPStan/Printer/IntegrationPrinterWithPhpParserTest.php on line 69

Lucas Nussbaum lucas at debian.org
Tue Jan 16 19:42:49 GMT 2024


Source: php-phpstan-phpdoc-parser
Version: 1.25.0-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240115 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> phpunit --no-coverage --bootstrap vendor/autoload.php
> PHPUnit 9.6.15 by Sebastian Bergmann and contributors.
> 
> .............................................................   61 / 3510 (  1%)
> .............................................................  122 / 3510 (  3%)
> .............................................................  183 / 3510 (  5%)
> .............................................................  244 / 3510 (  6%)
> .............................................................  305 / 3510 (  8%)
> .............................................................  366 / 3510 ( 10%)
> .............................................................  427 / 3510 ( 12%)
> .............................................................  488 / 3510 ( 13%)
> .............................................................  549 / 3510 ( 15%)
> .............................................................  610 / 3510 ( 17%)
> .............................................................  671 / 3510 ( 19%)
> .............................................................  732 / 3510 ( 20%)
> .............................................................  793 / 3510 ( 22%)
> .............................................................  854 / 3510 ( 24%)
> .............................................................  915 / 3510 ( 26%)
> .............................................................  976 / 3510 ( 27%)
> ............................................................. 1037 / 3510 ( 29%)
> ............................................................. 1098 / 3510 ( 31%)
> ............................................................. 1159 / 3510 ( 33%)
> ............................................................. 1220 / 3510 ( 34%)
> ............................................................. 1281 / 3510 ( 36%)
> ............................................................. 1342 / 3510 ( 38%)
> ............................................................. 1403 / 3510 ( 39%)
> ............................................................. 1464 / 3510 ( 41%)
> ............................................................. 1525 / 3510 ( 43%)
> ............................................................. 1586 / 3510 ( 45%)
> ............................................................. 1647 / 3510 ( 46%)
> ............................................................. 1708 / 3510 ( 48%)
> ............................................................. 1769 / 3510 ( 50%)
> ............................................................. 1830 / 3510 ( 52%)
> ............................................................. 1891 / 3510 ( 53%)
> ............................................................. 1952 / 3510 ( 55%)
> ............................................................. 2013 / 3510 ( 57%)
> ............................................................. 2074 / 3510 ( 59%)
> ............................................................. 2135 / 3510 ( 60%)
> ............................................................. 2196 / 3510 ( 62%)
> ............................................................. 2257 / 3510 ( 64%)
> ............................................................. 2318 / 3510 ( 66%)
> ............................................................. 2379 / 3510 ( 67%)
> ............................................................. 2440 / 3510 ( 69%)
> ............................................................. 2501 / 3510 ( 71%)
> ............................................................. 2562 / 3510 ( 72%)
> ............................................................. 2623 / 3510 ( 74%)
> ............................................................. 2684 / 3510 ( 76%)
> ............................................................. 2745 / 3510 ( 78%)
> ............................................................. 2806 / 3510 ( 79%)
> ............................................................. 2867 / 3510 ( 81%)
> ............................................................. 2928 / 3510 ( 83%)
> ............................................................. 2989 / 3510 ( 85%)
> ............................................................. 3050 / 3510 ( 86%)
> ............................................................. 3111 / 3510 ( 88%)
> ............................................................. 3172 / 3510 ( 90%)
> ............................................................. 3233 / 3510 ( 92%)
> ............................................................. 3294 / 3510 ( 93%)
> ............................................................. 3355 / 3510 ( 95%)
> ............................................EE............... 3416 / 3510 ( 97%)
> ............................................................. 3477 / 3510 ( 99%)
> .................................                             3510 / 3510 (100%)
> 
> Time: 00:00.532, Memory: 26.00 MB
> 
> There were 2 errors:
> 
> 1) PHPStan\PhpDocParser\Printer\IntegrationPrinterWithPhpParserTest::testPrint with data set #0 ('/build/php-phpstan-phpdoc-par...re.php', '/build/php-phpstan-phpdoc-par...er.php', PHPStan\PhpDocParser\Ast\AbstractNodeVisitor at anonymous/<<PKGBUILDDIR>>/tests/PHPStan/Printer/IntegrationPrinterWithPhpParserTest.php:36$64 Object ())
> TypeError: PhpParser\Lexer\Emulative::__construct(): Argument #1 ($phpVersion) must be of type ?PhpParser\PhpVersion, array given, called in /<<PKGBUILDDIR>>/tests/PHPStan/Printer/IntegrationPrinterWithPhpParserTest.php on line 69
> 
> /usr/share/php/PhpParser/Lexer/Emulative.php:38
> /<<PKGBUILDDIR>>/tests/PHPStan/Printer/IntegrationPrinterWithPhpParserTest.php:69
> 
> 2) PHPStan\PhpDocParser\Printer\IntegrationPrinterWithPhpParserTest::testPrint with data set #1 ('/build/php-phpstan-phpdoc-par...re.php', '/build/php-phpstan-phpdoc-par...er.php', PHPStan\PhpDocParser\Ast\AbstractNodeVisitor at anonymous/<<PKGBUILDDIR>>/tests/PHPStan/Printer/IntegrationPrinterWithPhpParserTest.php:36$64 Object ())
> TypeError: PhpParser\Lexer\Emulative::__construct(): Argument #1 ($phpVersion) must be of type ?PhpParser\PhpVersion, array given, called in /<<PKGBUILDDIR>>/tests/PHPStan/Printer/IntegrationPrinterWithPhpParserTest.php on line 69
> 
> /usr/share/php/PhpParser/Lexer/Emulative.php:38
> /<<PKGBUILDDIR>>/tests/PHPStan/Printer/IntegrationPrinterWithPhpParserTest.php:69
> 
> ERRORS!
> Tests: 3510, Assertions: 17300, Errors: 2.
> make[1]: *** [debian/rules:26: override_dh_auto_test] Error 2


The full build log is available from:
http://qa-logs.debian.net/2024/01/15/php-phpstan-phpdoc-parser_1.25.0-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240115;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240115&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the pkg-php-pear mailing list