Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
db82ab6
Add PHP 8.5 and Symfony 8 to CI
andrewmy Nov 29, 2025
d5afeff
Bump symfony versions in pkgs; test with ORM 3.6.x
andrewmy Nov 29, 2025
c6d4016
Replace the removed method
andrewmy Nov 29, 2025
147a5e3
Allow newer doctrine package versions
andrewmy Nov 29, 2025
17c7185
Fix function signature
andrewmy Nov 29, 2025
f4ab0d6
Work around the removal of Connection::connect()
andrewmy Nov 29, 2025
b9e5750
Juggle connect()/getServerVersion()
andrewmy Nov 29, 2025
7ff8cb8
Fix the method detection
andrewmy Nov 29, 2025
65c7385
Fix the method visibility check
andrewmy Nov 29, 2025
09bbbd6
Fix CS
andrewmy Nov 29, 2025
5d49067
Fix more signatures
andrewmy Nov 29, 2025
3055292
Fix more signatures
andrewmy Nov 29, 2025
40de666
Don't mock resetter impl
andrewmy Nov 29, 2025
7d924f3
Fix CS
andrewmy Nov 29, 2025
0bb43bb
Fix the pdo driver indication; one more place with connect()
andrewmy Nov 29, 2025
4316bf4
Better pdo driver string?
andrewmy Nov 29, 2025
a11a200
Drop PHP 8.5 from CI
andrewmy Dec 1, 2025
6a482c4
Drop SF5 from tests
andrewmy Dec 1, 2025
8132e71
DBAL 4 compatibility
andrewmy Dec 1, 2025
fff2dc9
ORM 3 compat
andrewmy Dec 1, 2025
1bdad59
Simplify DSN stuff again
andrewmy Dec 2, 2025
440c840
Fix DSN tests
andrewmy Dec 19, 2025
12bd6c6
Remove PHP 8.1 from CI, it's EOL on 2025.12.31. Also clean up 8.5 for…
andrewmy Dec 19, 2025
9c8669b
aws-sdk dropped old guzzle/psr7 and older aws versions no longer inst…
andrewmy Dec 19, 2025
d811f99
Fix CS job
andrewmy Dec 19, 2025
d804a1d
derp
andrewmy Dec 19, 2025
e2ff7e1
Fix deprecation
andrewmy Dec 19, 2025
ee38f85
Fix DSN parsing
andrewmy Dec 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Static analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: technote-space/get-diff-action@v6
with:
Expand All @@ -23,7 +23,7 @@ jobs:
extensions: mongodb, redis, :xdebug
ini-values: memory_limit=2048M

- run: php ./bin/fix-symfony-version.php "5.4.*"
- run: php ./bin/fix-symfony-version.php "7.4.*"

- uses: "ramsey/composer-install@v3"

Expand All @@ -37,7 +37,7 @@ jobs:
name: Code style check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: technote-space/get-diff-action@v6
with:
Expand All @@ -63,7 +63,7 @@ jobs:
extensions: mongodb, redis, :xdebug
ini-values: memory_limit=2048M

- run: php ./bin/fix-symfony-version.php "5.4.*"
- run: php ./bin/fix-symfony-version.php "7.4.*"

- run: composer update --no-progress

Expand All @@ -77,17 +77,19 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2']
symfony_version: ['6.2.*', '6.3.*', '6.4.*', '7.0.*']
php: ['8.2', '8.3', '8.4']
symfony_version: ['6.4.*', '7.3.*', '7.4.*', '8.0.*']
dependencies: ['--prefer-lowest', '--prefer-dist']
exclude:
- php: '8.1'
symfony_version: '7.0.*'
- php: '8.2'
symfony_version: '8.0.*'
- php: '8.3'
symfony_version: '8.0.*'

name: PHP ${{ matrix.php }} unit tests on Sf ${{ matrix.symfony_version }}, deps=${{ matrix.dependencies }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Get Composer Cache Directory
id: composer-cache
Expand Down Expand Up @@ -121,21 +123,19 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '8.1', '8.2' ]
symfony_version: [ '6.4.*', '7.0.*', '7.1.*', '7.2.*' ]
dependencies: [ '--prefer-lowest', '--prefer-dist' ]
php: ['8.2', '8.3', '8.4']
symfony_version: ['6.4.*', '7.3.*', '7.4.*', '8.0.*']
dependencies: ['--prefer-lowest', '--prefer-dist']
exclude:
- php: '8.1'
symfony_version: '7.0.*'
- php: '8.1'
symfony_version: '7.1.*'
- php: '8.1'
symfony_version: '7.2.*'
- php: '8.2'
symfony_version: '8.0.*'
- php: '8.3'
symfony_version: '8.0.*'

name: PHP ${{ matrix.php }} functional tests on Sf ${{ matrix.symfony_version }}, deps=${{ matrix.dependencies }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Get Composer Cache Directory
id: composer-cache
Expand Down
36 changes: 18 additions & 18 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"queue-interop/queue-interop": "^0.8.1",
"bunny/bunny": "^0.5.5",
"php-amqplib/php-amqplib": "^3.1",
"doctrine/dbal": "^3.2",
"doctrine/dbal": "^3.2|^4.0",
"ramsey/uuid": "^4.3",
"psr/log": "^1.1 || ^2.0 || ^3.0",
"psr/container": "^1.1 || ^2.0",
"makasim/temp-file": "^0.2",
"google/cloud-pubsub": "^1.46",
"doctrine/orm": "^2.12",
"doctrine/persistence": "^2.0|^3.0",
"doctrine/orm": "3.6.x-dev",
"doctrine/persistence": "^2.0|^3.0|^4.0",
"mongodb/mongodb": "^1.17",
"pda/pheanstalk": "^3.1",
"aws/aws-sdk-php": "^3.290",
Expand All @@ -41,7 +41,7 @@
"influxdb/influxdb-php": "^1.14",
"datadog/php-datadogstatsd": "^1.3",
"guzzlehttp/guzzle": "^7.0.1",
"guzzlehttp/psr7": "^1.9.1",
"guzzlehttp/psr7": "^2.4.5",
"php-http/discovery": "^1.13",
"voryx/thruway-common": "^1.0.1",
"react/dns": "^1.4",
Expand All @@ -53,20 +53,20 @@
"phpunit/phpunit": "^9.5.28",
"phpstan/phpstan": "^1.0",
"queue-interop/queue-spec": "^0.6.2",
"symfony/browser-kit": "^6.2|^7.0",
"symfony/config": "^6.2|^7.0",
"symfony/process": "^6.2|^7.0",
"symfony/console": "^6.2|^7.0",
"symfony/dependency-injection": "^6.2|^7.0",
"symfony/event-dispatcher": "^6.2|^7.0",
"symfony/expression-language": "^6.2|^7.0",
"symfony/http-kernel": "^6.2|^7.0",
"symfony/filesystem": "^6.2|^7.0",
"symfony/framework-bundle": "^6.2|^7.0",
"symfony/validator": "^6.2|^7.0",
"symfony/yaml": "^6.2|^7.0",
"symfony/browser-kit": "^6.2|^7.0|^8.0",
"symfony/config": "^6.2|^7.0|^8.0",
"symfony/process": "^6.2|^7.0|^8.0",
"symfony/console": "^6.2|^7.0|^8.0",
"symfony/dependency-injection": "^6.2|^7.0|^8.0",
"symfony/event-dispatcher": "^6.2|^7.0|^8.0",
"symfony/expression-language": "^6.2|^7.0|^8.0",
"symfony/http-kernel": "^6.2|^7.0|^8.0",
"symfony/filesystem": "^6.2|^7.0|^8.0",
"symfony/framework-bundle": "^6.2|^7.0|^8.0",
"symfony/validator": "^6.2|^7.0|^8.0",
"symfony/yaml": "^6.2|^7.0|^8.0",
"empi89/php-amqp-stubs": "*@dev",
"doctrine/doctrine-bundle": "^2.5",
"doctrine/doctrine-bundle": "^2.5|^3.1",
"doctrine/mongodb-odm-bundle": "^4.7|^5.0",
"alcaeus/mongo-php-adapter": "^1.0",
"kwn/php-rdkafka-stubs": "^2.0.3",
Expand Down Expand Up @@ -127,7 +127,7 @@
"ext-rdkafka": "4.0",
"ext-bcmath": "1",
"ext-mbstring": "1",
"ext-mongodb": "1.17.3",
"ext-mongodb": "1.21",
"ext-sockets": "1"
},
"prefer-stable": true,
Expand Down
5 changes: 3 additions & 2 deletions docker/bin/refresh-mysql-database.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@

$dbalContext = (new DbalConnectionFactory($dsn))->createContext();

$dbalContext->getDbalConnection()->getSchemaManager()->dropAndCreateDatabase($database);
$dbalContext->getDbalConnection()->exec('USE '.$database);
$dbalContext->getDbalConnection()->createSchemaManager()->dropDatabase($database);
$dbalContext->getDbalConnection()->createSchemaManager()->createDatabase($database);
$dbalContext->getDbalConnection()->executeQuery('USE '.$database);
$dbalContext->createDataBaseTable();

echo 'MySQL Database is updated'.\PHP_EOL;
4 changes: 3 additions & 1 deletion docker/bin/refresh-postgres-database.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

$dbalContext = (new DbalConnectionFactory($dsn))->createContext();

$dbalContext->getDbalConnection()->getSchemaManager()->dropAndCreateDatabase('postgres');
$database = 'postgres';
$dbalContext->getDbalConnection()->createSchemaManager()->dropDatabase($database);
$dbalContext->getDbalConnection()->createSchemaManager()->createDatabase($database);
$dbalContext->createDataBaseTable();

echo 'Postgresql Database is updated'.\PHP_EOL;
4 changes: 2 additions & 2 deletions pkg/amqp-bunny/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3', '8.4']

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- uses: shivammathur/setup-php@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions pkg/amqp-ext/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3', '8.4']

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- uses: shivammathur/setup-php@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions pkg/amqp-lib/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3', '8.4']

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- uses: shivammathur/setup-php@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions pkg/amqp-tools/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3', '8.4']

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- uses: shivammathur/setup-php@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions pkg/async-command/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3', '8.4']

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- uses: shivammathur/setup-php@v2
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class AsyncCommandExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
public function load(array $configs, ContainerBuilder $container): void
{
foreach ($configs['clients'] as $client) {
// BC compatibility
Expand Down
16 changes: 8 additions & 8 deletions pkg/async-command/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"php": "^8.1",
"enqueue/enqueue": "^0.10",
"queue-interop/queue-interop": "^0.8",
"symfony/console": "^5.4|^6.0",
"symfony/process": "^5.4|^6.0"
"symfony/console": "^6.2|^7.0|^8.0",
"symfony/process": "^6.2|^7.0|^8.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"symfony/dependency-injection": "^5.4|^6.0",
"symfony/config": "^5.4|^6.0",
"symfony/http-kernel": "^5.4|^6.0",
"symfony/filesystem": "^5.4|^6.0",
"symfony/yaml": "^5.4|^6.0",
"symfony/dependency-injection": "^6.2|^7.0|^8.0",
"symfony/config": "^6.2|^7.0|^8.0",
"symfony/http-kernel": "^6.2|^7.0|^8.0",
"symfony/filesystem": "^6.2|^7.0|^8.0",
"symfony/yaml": "^6.2|^7.0|^8.0",
"enqueue/null": "0.10.x-dev",
"enqueue/fs": "0.10.x-dev",
"enqueue/test": "0.10.x-dev"
Expand All @@ -31,7 +31,7 @@
"docs": "https://github.com/php-enqueue/enqueue-dev/blob/master/docs/index.md"
},
"suggest": {
"symfony/dependency-injection": "^5.4|^6.0 If you'd like to use async event dispatcher container extension."
"symfony/dependency-injection": "^6.2|^7.0|^8.0 If you'd like to use async event dispatcher container extension."
},
"autoload": {
"psr-4": { "Enqueue\\AsyncCommand\\": "" },
Expand Down
4 changes: 2 additions & 2 deletions pkg/async-event-dispatcher/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3', '8.4']

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- uses: shivammathur/setup-php@v2
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class AsyncEventDispatcherExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
public function load(array $configs, ContainerBuilder $container): void
{
$config = $this->processConfiguration(new Configuration(), $configs);

Expand Down
4 changes: 2 additions & 2 deletions pkg/dbal/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3', '8.4']

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- uses: shivammathur/setup-php@v2
with:
Expand Down
Loading
Loading