]> granicus.if.org Git - php/commitdiff
Try to restore laravel & symfony community jobs
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 6 Dec 2019 06:56:39 +0000 (07:56 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 6 Dec 2019 06:56:39 +0000 (07:56 +0100)
Patch Doctrine to fix the PDOConnection::query() signature.

azure/community_job.yml

index f5d4a7a592f3c4d014b9e9d9a5cc5a0b8eaee13c..d169bc0dbf3e09050a1f0d335087a2a75afc6e77 100644 (file)
@@ -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