From e71707cb5b6bbd73808963c8e2fbed9014bef92b Mon Sep 17 00:00:00 2001 From: Robin Lehrmann Date: Tue, 27 May 2025 12:31:04 +0200 Subject: [PATCH 1/3] chore: doctrine update Updated doctrine/orm to ^3.0.0 doctrine/doctrine-bundle to ^2.14 Signed-off-by: Robin Lehrmann --- composer.json | 20 +++++++++---------- .../Sensor/Database/DoctrineDbal.php | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/composer.json b/composer.json index 11daab8..50067dc 100644 --- a/composer.json +++ b/composer.json @@ -12,9 +12,9 @@ } ], "require": { - "php": ">=8.1", - "symfony/framework-bundle": "^6.3|^7.0", - "symfony/serializer": "^6.3|^7.0" + "php": ">=8.2", + "symfony/framework-bundle": "^6.4|^7.0", + "symfony/serializer": "^6.4|^7.0" }, "require-dev": { "nyholm/symfony-bundle-test": "^3.0", @@ -22,14 +22,14 @@ "whatwedo/php-coding-standard": "^1.0", "phpstan/phpstan": "^1.7", "phpunit/phpunit": "^9.5", - "symfony/browser-kit": "^6.3|^7.0", - "symfony/css-selector": "^6.3|^7.0", - "symfony/phpunit-bridge": "^6.3|^7.0", - "doctrine/doctrine-bundle": "^2.7", + "symfony/browser-kit": "^6.4|^7.0", + "symfony/css-selector": "^6.4|^7.0", + "symfony/phpunit-bridge": "^6.4|^7.0", + "doctrine/doctrine-bundle": "^2.14", "doctrine/doctrine-migrations-bundle": "^3.2", - "doctrine/orm": "^2.14", - "symfony/twig-bundle": "^6.3|^7.0", - "symfony/messenger": "^6.3|^7.0", + "doctrine/orm": "^3.0.0", + "symfony/twig-bundle": "^6.4|^7.0", + "symfony/messenger": "^6.4|^7.0", "symfony/mercure-bundle": "^0.3" }, "autoload": { diff --git a/src/Monitoring/Sensor/Database/DoctrineDbal.php b/src/Monitoring/Sensor/Database/DoctrineDbal.php index 95a3eab..4e8a434 100644 --- a/src/Monitoring/Sensor/Database/DoctrineDbal.php +++ b/src/Monitoring/Sensor/Database/DoctrineDbal.php @@ -37,10 +37,10 @@ public function run(): void * @var string $name * @var Connection $connection */ - foreach ($this->container->get(ManagerRegistry::class)->getConnections() as $name => $connection) { + foreach ($this->container->get(ManagerRegistry::class)->getConnections() as $connection) { try { $connection->executeQuery( - $connection->getDriver()->getDatabasePlatform()->getDummySelectSQL() + $connection->getDriver()->getDatabasePlatform($connection)->getDummySelectSQL() ); } catch (Exception $e) { $this->details['exception'] = $e->getMessage(); From 75588dfbf1ffd9132abe06113d40c5a6274d06ee Mon Sep 17 00:00:00 2001 From: Robin Lehrmann Date: Tue, 27 May 2025 12:59:14 +0200 Subject: [PATCH 2/3] ci: remove symfony 6.3 This version is no longer maintained. Signed-off-by: Robin Lehrmann --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c0c9517..1ce84e7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,7 +12,7 @@ jobs: matrix: operating-system: [ ubuntu-latest ] php: [ '8.1', '8.2' ] - symfony: [ '6.3.*', '6.4.*', '7.0.*' ] + symfony: [ '6.4.*', '7.0.*' ] exclude: - php: '8.1' symfony: '7.0.*' From 0911c8b1af0d3649b81023aba294a11309ea0442 Mon Sep 17 00:00:00 2001 From: Robin Lehrmann Date: Tue, 27 May 2025 15:57:06 +0200 Subject: [PATCH 3/3] chore: added php 8.3, 8.4 and symfony 7.1, 7.2 Signed-off-by: Robin Lehrmann --- .github/workflows/ci.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1ce84e7..29cf36f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,11 +11,13 @@ jobs: strategy: matrix: operating-system: [ ubuntu-latest ] - php: [ '8.1', '8.2' ] - symfony: [ '6.4.*', '7.0.*' ] + php: [ '8.2', '8.3', '8.4' ] + symfony: [ '6.4.*', '7.0.*', '7.1.*', '7.2.*' ] exclude: - php: '8.1' symfony: '7.0.*' + - php: '8.1' + symfony: '7.2.*' steps: - uses: actions/checkout@master