From: Nikita Popov Date: Fri, 6 Dec 2019 06:56:39 +0000 (+0100) Subject: Try to restore laravel & symfony community jobs X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=885359951434d7e1219e6e451aa2c95eb821c278;p=php Try to restore laravel & symfony community jobs Patch Doctrine to fix the PDOConnection::query() signature. --- diff --git a/azure/community_job.yml b/azure/community_job.yml index f5d4a7a592..d169bc0dbf 100644 --- a/azure/community_job.yml +++ b/azure/community_job.yml @@ -57,6 +57,8 @@ jobs: # Avoid test using exit(), which thus leaks. # We can use USE_TRACKED_ALLOC=1 if more of these show up. sed -i "s/function_exists('pcntl_fork')/false/" tests/Filesystem/FilesystemTest.php + # Work around PHP 8 incompatibility in Doctrine + sed -i 's/function query()/function query($statement = null)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php php vendor/bin/phpunit displayName: 'Test Laravel' - script: | @@ -64,6 +66,8 @@ jobs: cd symfony php7.3 /usr/bin/composer install --no-progress php7.3 ./phpunit install + # Work around PHP 8 incompatibility in Doctrine + sed -i 's/function query()/function query($statement = null)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php export USE_ZEND_ALLOC=0 export USE_TRACKED_ALLOC=1 export ASAN_OPTIONS=exitcode=139