Skip to content

Commit ef9a790

Browse files
nicolas-grekasnikic
authored andcommitted
Re-enable Symfony test on PHP 8
1 parent 5716fa7 commit ef9a790

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)