Skip to content

Commit 44c70b8

Browse files
committed
Disable Symfony test on PHP 8
Symfony is currently has an expected incompatibility with PHP 8: Fatal error: Declaration of Symfony\Component\HttpClient\Response\MockResponse::schedule(Symfony\Component\HttpClient\Response\MockResponse $response, array &$runningResponses): void must be compatible with Symfony\Component\HttpClient\Response\ResponseTrait::schedule(Symfony\Component\HttpClient\Response\ResponseTrait $response, array &$runningResponses): void in /home/vsts/work/1/s/symfony/src/Symfony/Component/HttpClient/Response/MockResponse.php on line 135 Disable the job until this is fixed.
1 parent f9e4c71 commit 44c70b8

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

azure/community_job.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,22 @@ jobs:
6161
sed -i 's/function query()/function query($statement = null)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
6262
php vendor/bin/phpunit
6363
displayName: 'Test Laravel'
64-
- script: |
65-
git clone https://github.com/symfony/symfony.git --branch=master --depth=1
66-
cd symfony
67-
php7.3 /usr/bin/composer install --no-progress
68-
php7.3 ./phpunit install
69-
# Work around PHP 8 incompatibility in Doctrine
70-
sed -i 's/function query()/function query($statement = null)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
71-
export USE_ZEND_ALLOC=0
72-
export USE_TRACKED_ALLOC=1
73-
export ASAN_OPTIONS=exitcode=139
74-
php ./phpunit --exclude-group tty,benchmark,intl-data,transient
75-
if [ $? -gt 128 ]; then
76-
exit 1
77-
fi
78-
displayName: 'Test Symfony'
79-
condition: or(succeeded(), failed())
64+
# - script: |
65+
# git clone https://github.com/symfony/symfony.git --branch=master --depth=1
66+
# cd symfony
67+
# php7.3 /usr/bin/composer install --no-progress
68+
# php7.3 ./phpunit install
69+
# # Work around PHP 8 incompatibility in Doctrine
70+
# sed -i 's/function query()/function query($statement = null)/' vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
71+
# export USE_ZEND_ALLOC=0
72+
# export USE_TRACKED_ALLOC=1
73+
# export ASAN_OPTIONS=exitcode=139
74+
# php ./phpunit --exclude-group tty,benchmark,intl-data,transient
75+
# if [ $? -gt 128 ]; then
76+
# exit 1
77+
# fi
78+
# displayName: 'Test Symfony'
79+
# condition: or(succeeded(), failed())
8080
- script: |
8181
git clone https://github.com/amphp/amp.git --branch=master --depth=1
8282
cd amp

0 commit comments

Comments
 (0)