Skip to content

Commit

Permalink
chore: cleanup composer requirements specs, drop support for php < 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed Jan 17, 2025
1 parent 6e45b84 commit d4fff03
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cscheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
strategy:
matrix:
php_version:
- '7.4'
- '8.1'

name: PHP ${{ matrix.php_version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup PHP with pecl extension
uses: shivammathur/setup-php@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
strategy:
matrix:
php_version:
- '8.0'
- '8.3'

name: PHP ${{ matrix.php_version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup PHP with pecl extension
uses: shivammathur/setup-php@v2
with:
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,25 @@ jobs:
matrix:
versions:
# PHP, SF, DB, Ser, MongoDB
- [7.4, 4.4, sqlite, false, '', '', 'mongodb://localhost:27017/']
- [8.0, 4.4, sqlite, false, '', '', 'mongodb://localhost:27017/']
- [8.0, 5.0, sqlite, false, '', '', 'mongodb://localhost:27017/']
- [8.0, 5.0, mysql, false, '', '', 'mongodb://localhost:27017/']
- [8.0, 4.4, sqlite, true, '', '', 'mongodb://localhost:27017/']
- [8.0, 5.0, sqlite, true, '', '', 'mongodb://localhost:27017/']
- [8.0, 6.0, sqlite, true, '', '', 'mongodb://localhost:27017/']
- [8.1, 4.4, sqlite, true, '', '', 'mongodb://localhost:27017/']
- [8.1, 5.0, sqlite, true, '', '', 'mongodb://localhost:27017/']
- [8.1, 6.0, sqlite, true, '', '', 'mongodb://localhost:27017/']
- [8.2, 6.0, sqlite, true, '', '', 'mongodb://localhost:27017/']
- [8.3, 6.0, sqlite, true, '', '', 'mongodb://localhost:27017/']
- [8.2, 7.0, sqlite, true, '', '', 'mongodb://localhost:27017/']
- [8.3, 7.0, sqlite, true, '', '', 'mongodb://localhost:27017/']
- [8.0, 5.0, sqlite, false, 'admin', 'admin_pass', 'mongodb://admin:admin_pass@localhost:27017/?authSource=admin']
- [8.0, 5.0, sqlite, true, 'admin', 'admin_pass', 'mongodb://admin:admin_pass@localhost:27017/?authSource=admin']
- [8.0, 5.0, sqlite, false, 'admin', 'admin_pass', 'mongodb://admin:admin_pass@localhost:27017/other_db/queue?authSource=admin']
- [8.0, 5.0, sqlite, true, 'admin', 'admin_pass', 'mongodb://admin:admin_pass@localhost:27017/other_db/queue?authSource=admin']
- [8.4, 7.2, sqlite, true, '', '', 'mongodb://localhost:27017/']
- [8.1, 5.0, sqlite, false, 'admin', 'admin_pass', 'mongodb://admin:admin_pass@localhost:27017/?authSource=admin']
- [8.1, 5.0, sqlite, true, 'admin', 'admin_pass', 'mongodb://admin:admin_pass@localhost:27017/?authSource=admin']
- [8.1, 5.0, sqlite, false, 'admin', 'admin_pass', 'mongodb://admin:admin_pass@localhost:27017/other_db/queue?authSource=admin']
- [8.1, 5.0, sqlite, true, 'admin', 'admin_pass', 'mongodb://admin:admin_pass@localhost:27017/other_db/queue?authSource=admin']
- [8.1, 6.0, sqlite, false, 'admin', 'admin_pass', 'mongodb://admin:admin_pass@localhost:27017/other_db/queue?authSource=admin']
- [8.1, 6.0, sqlite, true, 'admin', 'admin_pass', 'mongodb://admin:admin_pass@localhost:27017/other_db/queue?authSource=admin']
- [8.2, 6.0, sqlite, true, 'admin', 'admin_pass', 'mongodb://admin:admin_pass@localhost:27017/other_db/queue?authSource=admin']
- [8.3, 6.0, sqlite, true, 'admin', 'admin_pass', 'mongodb://admin:admin_pass@localhost:27017/other_db/queue?authSource=admin']
- [8.2, 7.0, sqlite, true, 'admin', 'admin_pass', 'mongodb://admin:admin_pass@localhost:27017/other_db/queue?authSource=admin']
- [8.3, 7.0, sqlite, true, 'admin', 'admin_pass', 'mongodb://admin:admin_pass@localhost:27017/other_db/queue?authSource=admin']
- [8.4, 7.2, sqlite, true, 'admin', 'admin_pass', 'mongodb://admin:admin_pass@localhost:27017/other_db/queue?authSource=admin']

name: Symfony ${{ matrix.versions[1] }} on PHP ${{ matrix.versions[0] }} with ${{ matrix.versions[2] }} database
services:
Expand Down
20 changes: 8 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"description": "Additional transports and serializer support for symfony messenger",
"type": "library",
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.1",
"ext-json": "*",
"symfony/messenger": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/messenger": ">=4.4",
"thecodingmachine/safe": "^1.0 || ^2.0"
},
"require-dev": {
"ext-mongodb": "^1.5",
"doctrine/dbal": "^2.10 || ^3.0",
"doctrine/dbal": "^2.10 || ^3.0 || ^4.0",
"doctrine/orm": "^2.6 || ^3.0",
"kcs/serializer": "^2.0 || ^3.0 || ^4.0",
"mongodb/mongodb": "^1.4",
Expand All @@ -21,15 +21,11 @@
"refugis/doctrine-extra": "^2.2 || ^3.0",
"roave/security-advisories": "dev-master",
"solido/php-coding-standards": "dev-master",
"symfony/framework-bundle": "^4.2 || ^5.0 || ^6.0 || ^7.0",
"symfony/process": "^4.2 || ^5.0 || ^6.0 || ^7.0",
"symfony/property-access": "^4.2 || ^5.0 || ^6.0 || ^7.0",
"symfony/serializer": "^4.2 || ^5.0 || ^6.0 || ^7.0",
"symfony/uid": "^5.1 || ^6.0 || ^7.0"
},
"suggest": {
"ramsey/uuid": "Required to use mongodb and dbal transport",
"ramsey/uuid-doctrine": "Required for DBAL transport"
"symfony/framework-bundle": ">=4.2",
"symfony/process": ">=4.2",
"symfony/property-access": ">=4.2",
"symfony/serializer": ">=4.2",
"symfony/uid": ">=5.1"
},
"license": "MIT",
"authors": [
Expand Down
3 changes: 2 additions & 1 deletion tests/Transport/Dbal/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ protected function setUp(): void

if (isset($connection)) {
$schemaManager = $connection->createSchemaManager();
$schemaManager->dropAndCreateDatabase('messenger');
$schemaManager->dropDatabase('messenger');
$schemaManager->createDatabase('messenger');
}

$this->transport->createTable();
Expand Down

0 comments on commit d4fff03

Please sign in to comment.