Skip to content

Commit 6e09a3e

Browse files
committed
Adjust Doctrine workaround in community job
[ci skip]
1 parent bb9e3dd commit 6e09a3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azure/community_job.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
# We can use USE_TRACKED_ALLOC=1 if more of these show up.
5959
sed -i "s/function_exists('pcntl_fork')/false/" tests/Filesystem/FilesystemTest.php
6060
# Work around PHP 8 incompatibility in Doctrine
61-
sed -i 's/function query()/function query($statement = null)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
61+
sed -i 's/function query()/function query(...$args)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
6262
sed -i 's/public function getMessage();//' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/DriverException.php
6363
php vendor/bin/phpunit
6464
displayName: 'Test Laravel'
@@ -68,7 +68,7 @@ jobs:
6868
php7.3 /usr/bin/composer install --no-progress
6969
php7.3 ./phpunit install
7070
# Work around PHP 8 incompatibility in Doctrine
71-
sed -i 's/function query()/function query($statement = null)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
71+
sed -i 's/function query()/function query(...$args)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
7272
export USE_ZEND_ALLOC=0
7373
export USE_TRACKED_ALLOC=1
7474
export ASAN_OPTIONS=exitcode=139

0 commit comments

Comments
 (0)