Skip to content

Commit

Permalink
add PHP 8.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
JanTvrdik committed Feb 6, 2025
1 parent 1ea7cec commit 20b522d
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']

name: PHP ${{ matrix.php }}

Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ services:
<<: *php-service-base
image: thecodingmachine/php:8.3-v4-cli

php84:
<<: *php-service-base
image: thecodingmachine/php:8.4-v4-cli

postgres:
image: postgres:9.6
environment:
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Development & Running Integration Tests in Docker
```
3. Run tests
```bash
tests/run-in-docker.sh php81 tests/run-integration.sh
tests/run-in-docker.sh php84 tests/run-integration.sh
```

License
Expand Down
2 changes: 1 addition & 1 deletion tests/inc/TestPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct()
}


protected function output(string $s, string $color = null): void
protected function output(string $s, ?string $color = null): void
{
$this->lines[] = preg_replace('#; \d+\.\d+ s#', '; XX s', $s);
$this->out .= "$s\n";
Expand Down
4 changes: 2 additions & 2 deletions tests/matrix/dbal/dibi-4.0-php-8.1.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
PHP_VERSION_MIN="80100"
PHP_VERSION_MAX="80399"
PHP_VERSION_MAX="80499"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE dibi/dibi:~4.2.7"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE nette/tester:~2.3"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE nette/tester:~2.4"
DBAL="dibi"
4 changes: 2 additions & 2 deletions tests/matrix/dbal/dibi-5.0.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
PHP_VERSION_MIN="80000"
PHP_VERSION_MAX="80399"
PHP_VERSION_MAX="80499"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE dibi/dibi:~5.0"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE nette/tester:~2.3"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE nette/tester:~2.4"
DBAL="dibi"
4 changes: 2 additions & 2 deletions tests/matrix/dbal/doctrine-3.0.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
PHP_VERSION_MIN="70300"
PHP_VERSION_MAX="80399"
PHP_VERSION_MAX="80499"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE doctrine/dbal:^3.3.7"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE nette/tester:~2.3"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE nette/tester:~2.4"
DBAL="doctrine"
4 changes: 2 additions & 2 deletions tests/matrix/dbal/doctrine-4.0.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
PHP_VERSION_MIN="80100"
PHP_VERSION_MAX="80399"
PHP_VERSION_MAX="80499"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE doctrine/dbal:^4.0"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE nette/tester:~2.3"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE nette/tester:~2.4"
DBAL="doctrine"
File renamed without changes.
6 changes: 0 additions & 6 deletions tests/matrix/dbal/nextras-5.0-php-8.1-to-8.3.sh

This file was deleted.

6 changes: 6 additions & 0 deletions tests/matrix/dbal/nextras-5.0-php-8.1-to-8.4.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
PHP_VERSION_MIN="80100"
PHP_VERSION_MAX="80499"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE nextras/dbal:~5.0.1"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE nette/tester:~2.4"
DBAL="nextras"
22 changes: 13 additions & 9 deletions tests/matrix/symfony-bundle/symfony-7.0-php-8.2.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
#!/usr/bin/env bash
PHP_VERSION_MIN="80200"
PHP_VERSION_MAX="80399"
PHP_VERSION_MAX="80499"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE doctrine/dbal:^3.3.7"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE doctrine/orm:~2.11"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE doctrine/doctrine-bundle:~2.6"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/config:~7.0"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/console:~7.0"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/dependency-injection:~7.0"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/doctrine-bridge:~7.0"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/framework-bundle:~7.0"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/http-kernel:~7.0"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/yaml:~7.0"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE nette/tester:~2.3"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/cache:~7.1"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/cache-contracts:~3.4.2"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/config:~7.1"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/console:~7.1"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/dependency-injection:~7.1"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/doctrine-bridge:~7.1"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/error-handler:~7.1.3"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/framework-bundle:~7.1"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/http-kernel:~7.1"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/var-exporter:~7.1"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE symfony/yaml:~7.1"
COMPOSER_REQUIRE="$COMPOSER_REQUIRE nette/tester:~2.4"
DBAL='doctrine'

0 comments on commit 20b522d

Please sign in to comment.