Skip to content

Commit 7af080e

Browse files
ozhLeoColomb
andauthored
Update libs and fix PHP 8 (#2824)
Fixes #2807 * Update libs * Refactor the logging system to match Aura SQL 3 * Bump PHPUnit version * Downgrade spatie/array-to-xml to 2.15 * Upgrade expectations to PHPUnit 8+ * Drop PHPUnit 6 support Co-authored-by: Léo Colombaro <[email protected]>
1 parent 89fc7a8 commit 7af080e

File tree

172 files changed

+25021
-4512
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+25021
-4512
lines changed

.travis.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,16 @@ services:
1212
# https://phpunit.de/supported-versions.html
1313
matrix:
1414
include:
15-
- php: 7.0
16-
env: PHPUNIT_VERSION=6.5.*
17-
- php: 7.1
18-
env: PHPUNIT_VERSION=7.5.*
1915
- php: 7.2
20-
env: PHPUNIT_VERSION=7.5.*
16+
env: PHPUNIT_VERSION=^8.0
2117
- php: 7.3
22-
env: PHPUNIT_VERSION=7.5.*
18+
env: PHPUNIT_VERSION=^8.0
2319
- php: 7.4
24-
env: PHPUNIT_VERSION=7.5.* TEST_COVERAGE=1 PHPUNIT_FLAGS='--coverage-clover clover.xml'
20+
env: PHPUNIT_VERSION=^8.0 TEST_COVERAGE=1 PHPUNIT_FLAGS='--coverage-clover clover.xml'
2521
- php: 8.0
26-
env: PHPUNIT_VERSION=8.5.*
22+
env: PHPUNIT_VERSION=^9.0
2723
- php: nightly
28-
env: PHPUNIT_VERSION=9.5.*
24+
env: PHPUNIT_VERSION=^9.0
2925
fast_finish: true
3026
allow_failures:
3127
- php: nightly
@@ -54,7 +50,7 @@ before_script:
5450
- mysql -e 'create database IF NOT EXISTS yourls_tests;'
5551
- cp tests/data/config/yourls-tests-config-travis.php user/config.php
5652

57-
script: tests/vendor/bin/phpunit --configuration ./phpunit-travis.xml.dist $PHPUNIT_FLAGS
53+
script: composer run -d ./tests tests -- --configuration ../phpunit-travis.xml.dist $PHPUNIT_FLAGS
5854

5955
after_script:
6056
- |

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"rmccue/requests" : "1.7",
2424
"pomo/pomo" : "1.4.1",
2525
"geoip2/geoip2" : "2.10.0",
26-
"aura/sql": "~2.",
26+
"aura/sql": "~3.",
2727
"jakeasmith/http_build_url": "1.0.1",
2828
"symfony/polyfill-mbstring": "1.15.0",
2929
"symfony/polyfill-intl-idn": "^1.17",

0 commit comments

Comments
 (0)