From 662face88a9099b4df5d91972bf7bce36474aede Mon Sep 17 00:00:00 2001 From: Florian Hermann Date: Fri, 14 Aug 2026 11:21:09 +0200 Subject: [PATCH 1/2] Add support for Symfony 8 --- .github/workflows/static.yml | 12 +- .github/workflows/tests.yml | 43 +- composer.json | 16 +- src/Command/NotifyDeploymentCommand.php | 8 +- src/DependencyInjection/Configuration.php | 26 +- tests/Listener/DeprecationListenerTest.php | 12 +- .../LoggingInteractorDecoratorTest.php | 2 +- .../ControllerNamingStrategyTest.php | 3 +- tools/php-cs-fixer/composer.lock | 838 ++++++++++++------ tools/phpstan/composer.lock | 33 +- 10 files changed, 656 insertions(+), 337 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 4c6c3d5..7d4c90f 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -7,18 +7,18 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.3 + php-version: 8.4 - name: Download dependencies - uses: ramsey/composer-install@v3 + uses: ramsey/composer-install@v4 - name: Install PHPStan - uses: ramsey/composer-install@v3 + uses: ramsey/composer-install@v4 with: working-directory: "tools/phpstan" @@ -36,7 +36,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.3 + php-version: 8.4 - name: Install php-cs-fixer uses: ramsey/composer-install@v3 @@ -57,7 +57,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.3 + php-version: 8.4 - name: Download dependencies uses: ramsey/composer-install@v3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0f0e428..3b14138 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,45 +4,40 @@ name: PHPUnit jobs: tests: name: Tests - runs-on: Ubuntu-20.04 + runs-on: ubuntu-latest strategy: - matrix: - include: - # Lowest Deps - - php: 8.3 - symfony-version: 7.1.* - composer-flags: '--prefer-stable --ignore-platform-req=php+' - # Active release - - php: 8.4 - symfony-version: 7.1.* - composer-flags: '--prefer-stable --ignore-platform-req=php+' - - php: 8.4 - symfony-version: 7.2.* - composer-flags: '--prefer-stable --ignore-platform-req=php+' - - php: 8.4 - symfony-version: 7.3.* - composer-flags: '--prefer-stable --ignore-platform-req=php+' fail-fast: false + matrix: + php: [ 8.4, 8.5 ] + symfony: [ 7.4.*, 8.0.*, 8.1.* ] steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v7 - - name: Setup PHP + - name: Setup PHP ${{ matrix.php }} uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} coverage: none - - name: Configure Composer minimum stability - if: matrix.stability - run: composer config minimum-stability ${{ matrix.stability }} + - name: Cache Composer + uses: actions/cache@v5 + with: + path: ~/.cache/composer + key: composer-${{ matrix.php }}-sf${{ matrix.symfony }}-${{ hashFiles('composer.json') }} + restore-keys: composer-${{ matrix.php }}-sf${{ matrix.symfony }}- + + - name: Activate Symfony Flex + run: | + composer global config --no-plugins allow-plugins.symfony/flex true + composer global require --no-progress --no-scripts --no-plugins symfony/flex - name: Install dependencies env: - SYMFONY_REQUIRE: ${{ matrix.symfony-require }} - run: composer update ${{ matrix.composer-flags }} --no-interaction --no-progress --optimize-autoloader + SYMFONY_REQUIRE: ${{ matrix.symfony }} + run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader - name: Run PHPUnit run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 125ff8b..04d4293 100644 --- a/composer.json +++ b/composer.json @@ -17,17 +17,17 @@ } ], "require": { - "php": "^8.2", - "symfony/config": "^5.4|^6.4|^7.0", - "symfony/console": "^5.4|^6.4|^7.0", - "symfony/dependency-injection": "^5.4|^6.4|^7.0", - "symfony/event-dispatcher": "^5.4|^6.4|^7.0", - "symfony/http-kernel": "^5.4|^6.4|^7.0" + "php": "^8.4", + "symfony/config": "^7.4|^8.0", + "symfony/console": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/event-dispatcher": "^7.4|^8.0", + "symfony/http-kernel": "^7.4|^8.0" }, "require-dev": { "matthiasnoback/symfony-dependency-injection-test": "^5.1", - "symfony/framework-bundle": "^5.4|^6.4|^7.0", - "symfony/phpunit-bridge": "^7.1", + "symfony/framework-bundle": "^7.4|^8.0", + "symfony/phpunit-bridge": "^7.4|^8.0", "twig/twig": "^3.10", "monolog/monolog": "^3.0", "phpunit/phpunit": "^9.6" diff --git a/src/Command/NotifyDeploymentCommand.php b/src/Command/NotifyDeploymentCommand.php index 2502a98..3925db3 100644 --- a/src/Command/NotifyDeploymentCommand.php +++ b/src/Command/NotifyDeploymentCommand.php @@ -19,11 +19,11 @@ class NotifyDeploymentCommand extends Command { - public const EXIT_NO_APP_NAMES = 1; - public const EXIT_UNAUTHORIZED = 2; - public const EXIT_HTTP_ERROR = 3; + public const int EXIT_NO_APP_NAMES = 1; + public const int EXIT_UNAUTHORIZED = 2; + public const int EXIT_HTTP_ERROR = 3; - public function __construct(private Config $newrelic) + public function __construct(private readonly Config $newrelic) { parent::__construct('newrelic:notify-deployment'); } diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index 98df36d..7056c95 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -37,8 +37,8 @@ public function getConfigTreeBuilder(): TreeBuilder ->prototype('scalar') ->end() ->beforeNormalization() - ->ifTrue(function ($v) { return !\is_array($v); }) - ->then(function ($v) { return array_values(array_filter(explode(';', (string) $v))); }) + ->ifTrue(static fn ($v) => !\is_array($v)) + ->then(static fn ($v) => array_values(array_filter(explode(';', (string) $v)))) ->end() ->end() ->scalarNode('xmit')->defaultValue(false)->end() @@ -56,8 +56,8 @@ public function getConfigTreeBuilder(): TreeBuilder ->prototype('scalar') ->end() ->beforeNormalization() - ->ifTrue(function ($v) { return !\is_array($v); }) - ->then(function ($v) { return (array) $v; }) + ->ifTrue(static fn ($v) => !\is_array($v)) + ->then(static fn ($v) => (array) $v) ->end() ->end() ->end() @@ -80,16 +80,16 @@ public function getConfigTreeBuilder(): TreeBuilder ->prototype('scalar') ->end() ->beforeNormalization() - ->ifTrue(function ($v) { return !\is_array($v); }) - ->then(function ($v) { return (array) $v; }) + ->ifTrue(static function ($v) { return !\is_array($v); }) + ->then(static function ($v) { return (array) $v; }) ->end() ->end() ->arrayNode('ignored_paths') ->prototype('scalar') ->end() ->beforeNormalization() - ->ifTrue(function ($v) { return !\is_array($v); }) - ->then(function ($v) { return (array) $v; }) + ->ifTrue(static function ($v) { return !\is_array($v); }) + ->then(static function ($v) { return (array) $v; }) ->end() ->end() ->scalarNode('using_symfony_cache')->defaultFalse()->end() @@ -106,18 +106,18 @@ public function getConfigTreeBuilder(): TreeBuilder ->canBeUnset() ->beforeNormalization() ->ifString() - ->then(function ($v) { return ['elements' => [$v]]; }) + ->then(static fn ($v) => ['elements' => [$v]]) ->end() ->beforeNormalization() - ->ifTrue(function ($v) { return \is_array($v) && is_numeric(key($v)); }) - ->then(function ($v) { return ['elements' => $v]; }) + ->ifTrue(static fn ($v) => \is_array($v) && is_numeric(key($v))) + ->then(static fn ($v) => ['elements' => $v]) ->end() ->validate() - ->ifTrue(function ($v) { return empty($v); }) + ->ifTrue(static fn ($v) => empty($v)) ->thenUnset() ->end() ->validate() - ->always(function ($v) { + ->always(static function ($v) { $isExclusive = null; if (isset($v['type'])) { $isExclusive = 'exclusive' === $v['type']; diff --git a/tests/Listener/DeprecationListenerTest.php b/tests/Listener/DeprecationListenerTest.php index f340cd3..972962c 100644 --- a/tests/Listener/DeprecationListenerTest.php +++ b/tests/Listener/DeprecationListenerTest.php @@ -27,7 +27,8 @@ public function testDeprecationIsReported(): void $listener = new DeprecationListener($interactor); - set_error_handler(function () { return false; }); + set_error_handler(static fn () => false); + try { $listener->register(); @trigger_error('This is a deprecation', \E_USER_DEPRECATED); @@ -44,7 +45,8 @@ public function testDeprecationIsReportedRegardlessErrorReporting(): void $listener = new DeprecationListener($interactor); - set_error_handler(function () { return false; }); + set_error_handler(static fn () => false); + $e = error_reporting(0); try { $listener->register(); @@ -63,7 +65,8 @@ public function testOtherErrorAreIgnored(): void $listener = new DeprecationListener($interactor); - set_error_handler(function () { return false; }); + set_error_handler(static fn () => false); + try { $listener->register(); @trigger_error('This is a notice', \E_USER_NOTICE); @@ -100,7 +103,8 @@ public function testUnregisterRemovesHandler(): void $listener = new DeprecationListener($interactor); - set_error_handler(function () { return false; }); + set_error_handler(static fn () => false); + try { $listener->register(); $listener->unregister(); diff --git a/tests/NewRelic/LoggingInteractorDecoratorTest.php b/tests/NewRelic/LoggingInteractorDecoratorTest.php index 6c94052..77a47f6 100644 --- a/tests/NewRelic/LoggingInteractorDecoratorTest.php +++ b/tests/NewRelic/LoggingInteractorDecoratorTest.php @@ -85,7 +85,7 @@ private function getTypeStub(?\ReflectionType $type): mixed case 'Throwable': return new \Exception(); case 'callable': - return function () {}; + return static function () {}; case 'array': return array_fill(0, 2, uniqid('', true)); default: diff --git a/tests/TransactionNamingStrategy/ControllerNamingStrategyTest.php b/tests/TransactionNamingStrategy/ControllerNamingStrategyTest.php index 0cc59fa..57ff9d0 100644 --- a/tests/TransactionNamingStrategy/ControllerNamingStrategyTest.php +++ b/tests/TransactionNamingStrategy/ControllerNamingStrategyTest.php @@ -29,8 +29,7 @@ public function testControllerAsString(): void public function testControllerAsClosure(): void { $request = new Request(); - $request->attributes->set('_controller', function () { - }); + $request->attributes->set('_controller', static fn () => null); $strategy = new ControllerNamingStrategy(); $this->assertSame('Closure controller', $strategy->getTransactionName($request)); diff --git a/tools/php-cs-fixer/composer.lock b/tools/php-cs-fixer/composer.lock index a9bde45..6bb9577 100644 --- a/tools/php-cs-fixer/composer.lock +++ b/tools/php-cs-fixer/composer.lock @@ -72,28 +72,29 @@ }, { "name": "composer/pcre", - "version": "3.3.2", + "version": "3.4.0", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e" + "reference": "d5a341b3fb61f3001970940afb1d332968a183ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e", - "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "url": "https://api.github.com/repos/composer/pcre/zipball/d5a341b3fb61f3001970940afb1d332968a183ed", + "reference": "d5a341b3fb61f3001970940afb1d332968a183ed", "shasum": "" }, "require": { "php": "^7.4 || ^8.0" }, "conflict": { - "phpstan/phpstan": "<1.11.10" + "phpstan/phpstan": "<2.2.2" }, "require-dev": { - "phpstan/phpstan": "^1.12 || ^2", - "phpstan/phpstan-strict-rules": "^1 || ^2", - "phpunit/phpunit": "^8 || ^9" + "phpstan/phpstan": "^2", + "phpstan/phpstan-deprecation-rules": "^2", + "phpstan/phpstan-strict-rules": "^2", + "phpunit/phpunit": "^9" }, "type": "library", "extra": { @@ -131,7 +132,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.3.2" + "source": "https://github.com/composer/pcre/tree/3.4.0" }, "funding": [ { @@ -141,26 +142,22 @@ { "url": "https://github.com/composer", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" } ], - "time": "2024-11-12T16:29:46+00:00" + "time": "2026-06-07T11:47:49+00:00" }, { "name": "composer/semver", - "version": "3.4.3", + "version": "3.4.4", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12" + "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", - "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "url": "https://api.github.com/repos/composer/semver/zipball/198166618906cb2de69b95d7d47e5fa8aa1b2b95", + "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95", "shasum": "" }, "require": { @@ -212,7 +209,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.4.3" + "source": "https://github.com/composer/semver/tree/3.4.4" }, "funding": [ { @@ -222,13 +219,9 @@ { "url": "https://github.com/composer", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" } ], - "time": "2024-09-19T14:15:21+00:00" + "time": "2025-08-20T19:15:30+00:00" }, { "name": "composer/xdebug-handler", @@ -296,6 +289,75 @@ ], "time": "2024-05-06T16:37:16+00:00" }, + { + "name": "ergebnis/agent-detector", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/ergebnis/agent-detector.git", + "reference": "e211f17928c8b95a51e06040792d57f5462fb271" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ergebnis/agent-detector/zipball/e211f17928c8b95a51e06040792d57f5462fb271", + "reference": "e211f17928c8b95a51e06040792d57f5462fb271", + "shasum": "" + }, + "require": { + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0 || ~8.6.0" + }, + "require-dev": { + "ergebnis/composer-normalize": "^2.51.0", + "ergebnis/license": "^2.7.0", + "ergebnis/php-cs-fixer-config": "^6.60.2", + "ergebnis/phpstan-rules": "^2.13.1", + "ergebnis/phpunit-slow-test-detector": "^2.24.0", + "ergebnis/rector-rules": "^1.18.1", + "fakerphp/faker": "^1.24.1", + "infection/infection": "^0.26.6", + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^2.1.54", + "phpstan/phpstan-deprecation-rules": "^2.0.4", + "phpstan/phpstan-phpunit": "^2.0.16", + "phpstan/phpstan-strict-rules": "^2.0.10", + "phpunit/phpunit": "^9.6.34", + "rector/rector": "^2.4.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.2-dev" + }, + "composer-normalize": { + "indent-size": 2, + "indent-style": "space" + } + }, + "autoload": { + "psr-4": { + "Ergebnis\\AgentDetector\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andreas Möller", + "email": "am@localheinz.com", + "homepage": "https://localheinz.com" + } + ], + "description": "Provides a detector for detecting the presence of an agent.", + "homepage": "https://github.com/ergebnis/agent-detector", + "support": { + "issues": "https://github.com/ergebnis/agent-detector/issues", + "security": "https://github.com/ergebnis/agent-detector/blob/main/.github/SECURITY.md", + "source": "https://github.com/ergebnis/agent-detector" + }, + "time": "2026-05-07T08:19:07+00:00" + }, { "name": "evenement/evenement", "version": "v3.0.2", @@ -345,16 +407,16 @@ }, { "name": "fidry/cpu-core-counter", - "version": "1.2.0", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/theofidry/cpu-core-counter.git", - "reference": "8520451a140d3f46ac33042715115e290cf5785f" + "reference": "db9508f7b1474469d9d3c53b86f817e344732678" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/8520451a140d3f46ac33042715115e290cf5785f", - "reference": "8520451a140d3f46ac33042715115e290cf5785f", + "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/db9508f7b1474469d9d3c53b86f817e344732678", + "reference": "db9508f7b1474469d9d3c53b86f817e344732678", "shasum": "" }, "require": { @@ -364,10 +426,10 @@ "fidry/makefile": "^0.2.0", "fidry/php-cs-fixer-config": "^1.1.2", "phpstan/extension-installer": "^1.2.0", - "phpstan/phpstan": "^1.9.2", - "phpstan/phpstan-deprecation-rules": "^1.0.0", - "phpstan/phpstan-phpunit": "^1.2.2", - "phpstan/phpstan-strict-rules": "^1.4.4", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-deprecation-rules": "^2.0.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", "phpunit/phpunit": "^8.5.31 || ^9.5.26", "webmozarts/strict-phpunit": "^7.5" }, @@ -394,7 +456,7 @@ ], "support": { "issues": "https://github.com/theofidry/cpu-core-counter/issues", - "source": "https://github.com/theofidry/cpu-core-counter/tree/1.2.0" + "source": "https://github.com/theofidry/cpu-core-counter/tree/1.3.0" }, "funding": [ { @@ -402,61 +464,63 @@ "type": "github" } ], - "time": "2024-08-06T10:04:20+00:00" + "time": "2025-08-14T07:29:31+00:00" }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.69.1", + "version": "v3.95.15", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "13b0c0eede38c11cd674b080f2b485d0f14ffa9f" + "reference": "3e47e5d50046f87e3244acde2fe655d1a3b72555" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/13b0c0eede38c11cd674b080f2b485d0f14ffa9f", - "reference": "13b0c0eede38c11cd674b080f2b485d0f14ffa9f", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/3e47e5d50046f87e3244acde2fe655d1a3b72555", + "reference": "3e47e5d50046f87e3244acde2fe655d1a3b72555", "shasum": "" }, "require": { - "clue/ndjson-react": "^1.0", + "clue/ndjson-react": "^1.3", "composer/semver": "^3.4", - "composer/xdebug-handler": "^3.0.3", + "composer/xdebug-handler": "^3.0.5", + "ergebnis/agent-detector": "^1.2", "ext-filter": "*", + "ext-hash": "*", "ext-json": "*", "ext-tokenizer": "*", - "fidry/cpu-core-counter": "^1.2", + "fidry/cpu-core-counter": "^1.3", "php": "^7.4 || ^8.0", - "react/child-process": "^0.6.5", - "react/event-loop": "^1.0", - "react/promise": "^2.0 || ^3.0", - "react/socket": "^1.0", - "react/stream": "^1.0", - "sebastian/diff": "^4.0 || ^5.1 || ^6.0 || ^7.0", - "symfony/console": "^5.4 || ^6.4 || ^7.0", - "symfony/event-dispatcher": "^5.4 || ^6.4 || ^7.0", - "symfony/filesystem": "^5.4 || ^6.4 || ^7.0", - "symfony/finder": "^5.4 || ^6.4 || ^7.0", - "symfony/options-resolver": "^5.4 || ^6.4 || ^7.0", - "symfony/polyfill-mbstring": "^1.31", - "symfony/polyfill-php80": "^1.31", - "symfony/polyfill-php81": "^1.31", - "symfony/process": "^5.4 || ^6.4 || ^7.2", - "symfony/stopwatch": "^5.4 || ^6.4 || ^7.0" + "react/child-process": "^0.6.6", + "react/event-loop": "^1.5", + "react/socket": "^1.16", + "react/stream": "^1.4", + "sebastian/diff": "^4.0.6 || ^5.1.1 || ^6.0.2 || ^7.0 || ^8.0 || ^9.0", + "symfony/console": "^5.4.47 || ^6.4.24 || ^7.0 || ^8.0", + "symfony/event-dispatcher": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0", + "symfony/filesystem": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0", + "symfony/finder": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0", + "symfony/options-resolver": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0", + "symfony/polyfill-mbstring": "^1.37", + "symfony/polyfill-php80": "^1.37", + "symfony/polyfill-php81": "^1.37", + "symfony/polyfill-php84": "^1.37", + "symfony/process": "^5.4.47 || ^6.4.24 || ^7.2 || ^8.0", + "symfony/stopwatch": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0" }, "require-dev": { - "facile-it/paraunit": "^1.3.1 || ^2.5", - "infection/infection": "^0.29.10", - "justinrainbow/json-schema": "^5.3 || ^6.0", - "keradus/cli-executor": "^2.1", + "facile-it/paraunit": "^1.3.1 || ^2.11.0", + "infection/infection": "^0.32.7", + "justinrainbow/json-schema": "^6.10.0", + "keradus/cli-executor": "^2.3", "mikey179/vfsstream": "^1.6.12", - "php-coveralls/php-coveralls": "^2.7", - "php-cs-fixer/accessible-object": "^1.1", - "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.6", - "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.6", - "phpunit/phpunit": "^9.6.22 || ^10.5.45 || ^11.5.7", - "symfony/var-dumper": "^5.4.48 || ^6.4.18 || ^7.2.0", - "symfony/yaml": "^5.4.45 || ^6.4.18 || ^7.2.0" + "php-coveralls/php-coveralls": "^2.9.1", + "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.8", + "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.8", + "phpunit/phpunit": "^9.6.35 || ^10.5.64 || ^11.5.56 || ^12.5.31", + "symfony/polyfill-php85": "^1.38", + "symfony/var-dumper": "^5.4.48 || ^6.4.36 || ^7.4.8 || ^8.1.0", + "symfony/yaml": "^5.4.53 || ^6.4.41 || ^7.4.13 || ^8.1.0" }, "suggest": { "ext-dom": "For handling output formats in XML", @@ -471,7 +535,7 @@ "PhpCsFixer\\": "src/" }, "exclude-from-classmap": [ - "src/Fixer/Internal/*" + "src/**/Internal/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -497,7 +561,7 @@ ], "support": { "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.69.1" + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.95.15" }, "funding": [ { @@ -505,7 +569,7 @@ "type": "github" } ], - "time": "2025-02-18T23:57:43+00:00" + "time": "2026-07-15T09:51:47+00:00" }, { "name": "psr/container", @@ -734,16 +798,16 @@ }, { "name": "react/child-process", - "version": "v0.6.6", + "version": "v0.6.7", "source": { "type": "git", "url": "https://github.com/reactphp/child-process.git", - "reference": "1721e2b93d89b745664353b9cfc8f155ba8a6159" + "reference": "970f0e71945556422ee4570ccbabaedc3cf04ad3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/child-process/zipball/1721e2b93d89b745664353b9cfc8f155ba8a6159", - "reference": "1721e2b93d89b745664353b9cfc8f155ba8a6159", + "url": "https://api.github.com/repos/reactphp/child-process/zipball/970f0e71945556422ee4570ccbabaedc3cf04ad3", + "reference": "970f0e71945556422ee4570ccbabaedc3cf04ad3", "shasum": "" }, "require": { @@ -797,7 +861,7 @@ ], "support": { "issues": "https://github.com/reactphp/child-process/issues", - "source": "https://github.com/reactphp/child-process/tree/v0.6.6" + "source": "https://github.com/reactphp/child-process/tree/v0.6.7" }, "funding": [ { @@ -805,20 +869,20 @@ "type": "open_collective" } ], - "time": "2025-01-01T16:37:48+00:00" + "time": "2025-12-23T15:25:20+00:00" }, { "name": "react/dns", - "version": "v1.13.0", + "version": "v1.14.0", "source": { "type": "git", "url": "https://github.com/reactphp/dns.git", - "reference": "eb8ae001b5a455665c89c1df97f6fb682f8fb0f5" + "reference": "7562c05391f42701c1fccf189c8225fece1cd7c3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/dns/zipball/eb8ae001b5a455665c89c1df97f6fb682f8fb0f5", - "reference": "eb8ae001b5a455665c89c1df97f6fb682f8fb0f5", + "url": "https://api.github.com/repos/reactphp/dns/zipball/7562c05391f42701c1fccf189c8225fece1cd7c3", + "reference": "7562c05391f42701c1fccf189c8225fece1cd7c3", "shasum": "" }, "require": { @@ -873,7 +937,7 @@ ], "support": { "issues": "https://github.com/reactphp/dns/issues", - "source": "https://github.com/reactphp/dns/tree/v1.13.0" + "source": "https://github.com/reactphp/dns/tree/v1.14.0" }, "funding": [ { @@ -881,20 +945,20 @@ "type": "open_collective" } ], - "time": "2024-06-13T14:18:03+00:00" + "time": "2025-11-18T19:34:28+00:00" }, { "name": "react/event-loop", - "version": "v1.5.0", + "version": "v1.6.0", "source": { "type": "git", "url": "https://github.com/reactphp/event-loop.git", - "reference": "bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354" + "reference": "ba276bda6083df7e0050fd9b33f66ad7a4ac747a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/event-loop/zipball/bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354", - "reference": "bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354", + "url": "https://api.github.com/repos/reactphp/event-loop/zipball/ba276bda6083df7e0050fd9b33f66ad7a4ac747a", + "reference": "ba276bda6083df7e0050fd9b33f66ad7a4ac747a", "shasum": "" }, "require": { @@ -945,7 +1009,7 @@ ], "support": { "issues": "https://github.com/reactphp/event-loop/issues", - "source": "https://github.com/reactphp/event-loop/tree/v1.5.0" + "source": "https://github.com/reactphp/event-loop/tree/v1.6.0" }, "funding": [ { @@ -953,27 +1017,27 @@ "type": "open_collective" } ], - "time": "2023-11-13T13:48:05+00:00" + "time": "2025-11-17T20:46:25+00:00" }, { "name": "react/promise", - "version": "v3.2.0", + "version": "v3.3.0", "source": { "type": "git", "url": "https://github.com/reactphp/promise.git", - "reference": "8a164643313c71354582dc850b42b33fa12a4b63" + "reference": "23444f53a813a3296c1368bb104793ce8d88f04a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise/zipball/8a164643313c71354582dc850b42b33fa12a4b63", - "reference": "8a164643313c71354582dc850b42b33fa12a4b63", + "url": "https://api.github.com/repos/reactphp/promise/zipball/23444f53a813a3296c1368bb104793ce8d88f04a", + "reference": "23444f53a813a3296c1368bb104793ce8d88f04a", "shasum": "" }, "require": { "php": ">=7.1.0" }, "require-dev": { - "phpstan/phpstan": "1.10.39 || 1.4.10", + "phpstan/phpstan": "1.12.28 || 1.4.10", "phpunit/phpunit": "^9.6 || ^7.5" }, "type": "library", @@ -1018,7 +1082,7 @@ ], "support": { "issues": "https://github.com/reactphp/promise/issues", - "source": "https://github.com/reactphp/promise/tree/v3.2.0" + "source": "https://github.com/reactphp/promise/tree/v3.3.0" }, "funding": [ { @@ -1026,20 +1090,20 @@ "type": "open_collective" } ], - "time": "2024-05-24T10:39:05+00:00" + "time": "2025-08-19T18:57:03+00:00" }, { "name": "react/socket", - "version": "v1.16.0", + "version": "v1.17.0", "source": { "type": "git", "url": "https://github.com/reactphp/socket.git", - "reference": "23e4ff33ea3e160d2d1f59a0e6050e4b0fb0eac1" + "reference": "ef5b17b81f6f60504c539313f94f2d826c5faa08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/socket/zipball/23e4ff33ea3e160d2d1f59a0e6050e4b0fb0eac1", - "reference": "23e4ff33ea3e160d2d1f59a0e6050e4b0fb0eac1", + "url": "https://api.github.com/repos/reactphp/socket/zipball/ef5b17b81f6f60504c539313f94f2d826c5faa08", + "reference": "ef5b17b81f6f60504c539313f94f2d826c5faa08", "shasum": "" }, "require": { @@ -1098,7 +1162,7 @@ ], "support": { "issues": "https://github.com/reactphp/socket/issues", - "source": "https://github.com/reactphp/socket/tree/v1.16.0" + "source": "https://github.com/reactphp/socket/tree/v1.17.0" }, "funding": [ { @@ -1106,7 +1170,7 @@ "type": "open_collective" } ], - "time": "2024-07-26T10:38:09+00:00" + "time": "2025-11-19T20:47:34+00:00" }, { "name": "react/stream", @@ -1188,29 +1252,29 @@ }, { "name": "sebastian/diff", - "version": "7.0.0", + "version": "9.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "7ab1ea946c012266ca32390913653d844ecd085f" + "reference": "a3fb6a298a265ff487a91bbea46e03cd01dbb226" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7ab1ea946c012266ca32390913653d844ecd085f", - "reference": "7ab1ea946c012266ca32390913653d844ecd085f", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/a3fb6a298a265ff487a91bbea46e03cd01dbb226", + "reference": "a3fb6a298a265ff487a91bbea46e03cd01dbb226", "shasum": "" }, "require": { - "php": ">=8.3" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^12.0", - "symfony/process": "^7.2" + "phpunit/phpunit": "^13.2", + "symfony/process": "^7.4.13" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "7.0-dev" + "dev-main": "9.0-dev" } }, "autoload": { @@ -1243,58 +1307,73 @@ "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", "security": "https://github.com/sebastianbergmann/diff/security/policy", - "source": "https://github.com/sebastianbergmann/diff/tree/7.0.0" + "source": "https://github.com/sebastianbergmann/diff/tree/9.0.0" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/diff", + "type": "tidelift" } ], - "time": "2025-02-07T04:55:46+00:00" + "time": "2026-06-05T03:04:51+00:00" }, { "name": "symfony/console", - "version": "v7.2.1", + "version": "v8.1.1", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "fefcc18c0f5d0efe3ab3152f15857298868dc2c3" + "reference": "b711a8ab808b6c074c6b8caef70d0fd8d6b6d07d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/fefcc18c0f5d0efe3ab3152f15857298868dc2c3", - "reference": "fefcc18c0f5d0efe3ab3152f15857298868dc2c3", + "url": "https://api.github.com/repos/symfony/console/zipball/b711a8ab808b6c074c6b8caef70d0fd8d6b6d07d", + "reference": "b711a8ab808b6c074c6b8caef70d0fd8d6b6d07d", "shasum": "" }, "require": { - "php": ">=8.2", - "symfony/polyfill-mbstring": "~1.0", + "php": ">=8.4.1", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "^1.0", + "symfony/polyfill-php85": "^1.32", "symfony/service-contracts": "^2.5|^3", - "symfony/string": "^6.4|^7.0" + "symfony/string": "^7.4.6|^8.0.6" }, "conflict": { - "symfony/dependency-injection": "<6.4", - "symfony/dotenv": "<6.4", - "symfony/event-dispatcher": "<6.4", - "symfony/lock": "<6.4", - "symfony/process": "<6.4" + "symfony/dependency-injection": "<8.1", + "symfony/event-dispatcher": "<8.1" }, "provide": { "psr/log-implementation": "1.0|2.0|3.0" }, "require-dev": { "psr/log": "^1|^2|^3", - "symfony/config": "^6.4|^7.0", - "symfony/dependency-injection": "^6.4|^7.0", - "symfony/event-dispatcher": "^6.4|^7.0", - "symfony/http-foundation": "^6.4|^7.0", - "symfony/http-kernel": "^6.4|^7.0", - "symfony/lock": "^6.4|^7.0", - "symfony/messenger": "^6.4|^7.0", - "symfony/process": "^6.4|^7.0", - "symfony/stopwatch": "^6.4|^7.0", - "symfony/var-dumper": "^6.4|^7.0" + "symfony/config": "^7.4|^8.0", + "symfony/dependency-injection": "^8.1", + "symfony/event-dispatcher": "^8.1", + "symfony/filesystem": "^7.4|^8.0", + "symfony/http-foundation": "^7.4|^8.0", + "symfony/http-kernel": "^7.4|^8.0", + "symfony/lock": "^7.4|^8.0", + "symfony/messenger": "^7.4|^8.0", + "symfony/mime": "^7.4|^8.0", + "symfony/process": "^7.4|^8.0", + "symfony/stopwatch": "^7.4|^8.0", + "symfony/uid": "^7.4|^8.0", + "symfony/validator": "^7.4|^8.0", + "symfony/var-dumper": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -1328,7 +1407,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.2.1" + "source": "https://github.com/symfony/console/tree/v8.1.1" }, "funding": [ { @@ -1339,25 +1418,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-12-11T03:49:26+00:00" + "time": "2026-06-16T12:55:20+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.5.1", + "version": "v3.7.1", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6" + "reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", - "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/f3202fa1b5097b0af062dc978b32ecf63404e31d", + "reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d", "shasum": "" }, "require": { @@ -1370,7 +1453,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.5-dev" + "dev-main": "3.7-dev" } }, "autoload": { @@ -1395,7 +1478,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.7.1" }, "funding": [ { @@ -1406,33 +1489,38 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-25T14:20:29+00:00" + "time": "2026-06-05T06:23:12+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v7.2.0", + "version": "v8.1.1", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "910c5db85a5356d0fea57680defec4e99eb9c8c1" + "reference": "abd6c11dc468725d1627302ad10f6cd486e9e3d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/910c5db85a5356d0fea57680defec4e99eb9c8c1", - "reference": "910c5db85a5356d0fea57680defec4e99eb9c8c1", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/abd6c11dc468725d1627302ad10f6cd486e9e3d0", + "reference": "abd6c11dc468725d1627302ad10f6cd486e9e3d0", "shasum": "" }, "require": { - "php": ">=8.2", + "php": ">=8.4.1", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/event-dispatcher-contracts": "^2.5|^3" }, "conflict": { - "symfony/dependency-injection": "<6.4", + "symfony/security-http": "<7.4", "symfony/service-contracts": "<2.5" }, "provide": { @@ -1441,13 +1529,14 @@ }, "require-dev": { "psr/log": "^1|^2|^3", - "symfony/config": "^6.4|^7.0", - "symfony/dependency-injection": "^6.4|^7.0", - "symfony/error-handler": "^6.4|^7.0", - "symfony/expression-language": "^6.4|^7.0", - "symfony/http-foundation": "^6.4|^7.0", + "symfony/config": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/error-handler": "^7.4|^8.0", + "symfony/expression-language": "^7.4|^8.0", + "symfony/framework-bundle": "^7.4|^8.0", + "symfony/http-foundation": "^7.4|^8.0", "symfony/service-contracts": "^2.5|^3", - "symfony/stopwatch": "^6.4|^7.0" + "symfony/stopwatch": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -1475,7 +1564,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v7.2.0" + "source": "https://github.com/symfony/event-dispatcher/tree/v8.1.1" }, "funding": [ { @@ -1486,25 +1575,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-25T14:21:43+00:00" + "time": "2026-06-09T12:28:30+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v3.5.1", + "version": "v3.7.1", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "7642f5e970b672283b7823222ae8ef8bbc160b9f" + "reference": "c7de7a00ffb67842132da02ea92988a39ccd9f4e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/7642f5e970b672283b7823222ae8ef8bbc160b9f", - "reference": "7642f5e970b672283b7823222ae8ef8bbc160b9f", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/c7de7a00ffb67842132da02ea92988a39ccd9f4e", + "reference": "c7de7a00ffb67842132da02ea92988a39ccd9f4e", "shasum": "" }, "require": { @@ -1518,7 +1611,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.5-dev" + "dev-main": "3.7-dev" } }, "autoload": { @@ -1551,7 +1644,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.5.1" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.7.1" }, "funding": [ { @@ -1562,34 +1655,39 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-25T14:20:29+00:00" + "time": "2026-06-05T06:23:12+00:00" }, { "name": "symfony/filesystem", - "version": "v7.2.0", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "b8dce482de9d7c9fe2891155035a7248ab5c7fdb" + "reference": "99aec13b82b4967ec5088222c4a3ecca955949c2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/b8dce482de9d7c9fe2891155035a7248ab5c7fdb", - "reference": "b8dce482de9d7c9fe2891155035a7248ab5c7fdb", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/99aec13b82b4967ec5088222c4a3ecca955949c2", + "reference": "99aec13b82b4967ec5088222c4a3ecca955949c2", "shasum": "" }, "require": { - "php": ">=8.2", + "php": ">=8.4.1", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-mbstring": "~1.8" }, "require-dev": { - "symfony/process": "^6.4|^7.0" + "symfony/process": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -1617,7 +1715,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.2.0" + "source": "https://github.com/symfony/filesystem/tree/v8.1.0" }, "funding": [ { @@ -1628,32 +1726,36 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-10-25T15:15:23+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/finder", - "version": "v7.2.2", + "version": "v8.1.1", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "87a71856f2f56e4100373e92529eed3171695cfb" + "reference": "e2989e762c70f9490fa3a00a0ac0fae5aa97a531" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/87a71856f2f56e4100373e92529eed3171695cfb", - "reference": "87a71856f2f56e4100373e92529eed3171695cfb", + "url": "https://api.github.com/repos/symfony/finder/zipball/e2989e762c70f9490fa3a00a0ac0fae5aa97a531", + "reference": "e2989e762c70f9490fa3a00a0ac0fae5aa97a531", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4.1" }, "require-dev": { - "symfony/filesystem": "^6.4|^7.0" + "symfony/filesystem": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -1681,7 +1783,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.2.2" + "source": "https://github.com/symfony/finder/tree/v8.1.1" }, "funding": [ { @@ -1692,29 +1794,33 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-12-30T19:00:17+00:00" + "time": "2026-06-27T09:05:56+00:00" }, { "name": "symfony/options-resolver", - "version": "v7.2.0", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "7da8fbac9dcfef75ffc212235d76b2754ce0cf50" + "reference": "88f9c561f678a02d54b897014049fa839e33ff82" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/7da8fbac9dcfef75ffc212235d76b2754ce0cf50", - "reference": "7da8fbac9dcfef75ffc212235d76b2754ce0cf50", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/88f9c561f678a02d54b897014049fa839e33ff82", + "reference": "88f9c561f678a02d54b897014049fa839e33ff82", "shasum": "" }, "require": { - "php": ">=8.2", + "php": ">=8.4.1", "symfony/deprecation-contracts": "^2.5|^3" }, "type": "library", @@ -1748,7 +1854,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v7.2.0" + "source": "https://github.com/symfony/options-resolver/tree/v8.1.0" }, "funding": [ { @@ -1759,25 +1865,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-11-20T11:17:29+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.31.0", + "version": "v1.37.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638" + "reference": "141046a8f9477948ff284fa65be2095baafb94f2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", - "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/141046a8f9477948ff284fa65be2095baafb94f2", + "reference": "141046a8f9477948ff284fa65be2095baafb94f2", "shasum": "" }, "require": { @@ -1827,7 +1937,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.37.0" }, "funding": [ { @@ -1838,25 +1948,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2026-04-10T16:19:22+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.31.0", + "version": "v1.38.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe" + "reference": "e9247d281d694a5120554d9afaf54e070e88a603" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", - "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/e9247d281d694a5120554d9afaf54e070e88a603", + "reference": "e9247d281d694a5120554d9afaf54e070e88a603", "shasum": "" }, "require": { @@ -1905,7 +2019,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.38.1" }, "funding": [ { @@ -1916,25 +2030,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2026-05-26T05:58:03+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.31.0", + "version": "v1.38.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "3833d7255cc303546435cb650316bff708a1c75c" + "reference": "2d446c214bdbe5b71bde5011b060a05fece3ae6b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c", - "reference": "3833d7255cc303546435cb650316bff708a1c75c", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/2d446c214bdbe5b71bde5011b060a05fece3ae6b", + "reference": "2d446c214bdbe5b71bde5011b060a05fece3ae6b", "shasum": "" }, "require": { @@ -1986,7 +2104,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.38.0" }, "funding": [ { @@ -1997,28 +2115,33 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2026-05-25T13:48:31+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.31.0", + "version": "v1.38.2", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" + "reference": "d3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", - "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/d3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6", + "reference": "d3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6", "shasum": "" }, "require": { + "ext-iconv": "*", "php": ">=7.2" }, "provide": { @@ -2066,7 +2189,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.38.2" }, "funding": [ { @@ -2077,25 +2200,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2026-05-27T06:59:30+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.31.0", + "version": "v1.37.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8" + "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", - "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dfb55726c3a76ea3b6459fcfda1ec2d80a682411", + "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411", "shasum": "" }, "require": { @@ -2146,7 +2273,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.37.0" }, "funding": [ { @@ -2157,25 +2284,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2026-04-10T16:19:22+00:00" }, { "name": "symfony/polyfill-php81", - "version": "v1.31.0", + "version": "v1.38.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c" + "reference": "6bfb9c766cacffbc8e118cb87217d08ed84e5cd7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c", - "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/6bfb9c766cacffbc8e118cb87217d08ed84e5cd7", + "reference": "6bfb9c766cacffbc8e118cb87217d08ed84e5cd7", "shasum": "" }, "require": { @@ -2222,7 +2353,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.38.1" }, "funding": [ { @@ -2233,29 +2364,193 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2026-05-26T12:45:58+00:00" + }, + { + "name": "symfony/polyfill-php84", + "version": "v1.38.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php84.git", + "reference": "f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa", + "reference": "f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php84\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php84/tree/v1.38.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-05-26T12:51:13+00:00" + }, + { + "name": "symfony/polyfill-php85", + "version": "v1.38.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php85.git", + "reference": "ba2ba04f3352cfa2dcbbcb90aee13ed967f505b1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/ba2ba04f3352cfa2dcbbcb90aee13ed967f505b1", + "reference": "ba2ba04f3352cfa2dcbbcb90aee13ed967f505b1", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php85\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.5+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php85/tree/v1.38.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-05-26T02:25:22+00:00" }, { "name": "symfony/process", - "version": "v7.2.0", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "d34b22ba9390ec19d2dd966c40aa9e8462f27a7e" + "reference": "c4a9e58f235a6bf7f97ffbfedae2687353ac79e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/d34b22ba9390ec19d2dd966c40aa9e8462f27a7e", - "reference": "d34b22ba9390ec19d2dd966c40aa9e8462f27a7e", + "url": "https://api.github.com/repos/symfony/process/zipball/c4a9e58f235a6bf7f97ffbfedae2687353ac79e5", + "reference": "c4a9e58f235a6bf7f97ffbfedae2687353ac79e5", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4.1" }, "type": "library", "autoload": { @@ -2283,7 +2578,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.2.0" + "source": "https://github.com/symfony/process/tree/v8.1.0" }, "funding": [ { @@ -2294,25 +2589,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-11-06T14:24:19+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.5.1", + "version": "v3.7.1", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0" + "reference": "c0a284bab1ed8aa0417e3d69250ab437739563a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/e53260aabf78fb3d63f8d79d69ece59f80d5eda0", - "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/c0a284bab1ed8aa0417e3d69250ab437739563a0", + "reference": "c0a284bab1ed8aa0417e3d69250ab437739563a0", "shasum": "" }, "require": { @@ -2330,7 +2629,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.5-dev" + "dev-main": "3.7-dev" } }, "autoload": { @@ -2366,7 +2665,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.5.1" + "source": "https://github.com/symfony/service-contracts/tree/v3.7.1" }, "funding": [ { @@ -2377,29 +2676,33 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-25T14:20:29+00:00" + "time": "2026-06-16T09:55:08+00:00" }, { "name": "symfony/stopwatch", - "version": "v7.2.2", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "e46690d5b9d7164a6d061cab1e8d46141b9f49df" + "reference": "21c07b026905d596e8379caeb115d87aa479499d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/e46690d5b9d7164a6d061cab1e8d46141b9f49df", - "reference": "e46690d5b9d7164a6d061cab1e8d46141b9f49df", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/21c07b026905d596e8379caeb115d87aa479499d", + "reference": "21c07b026905d596e8379caeb115d87aa479499d", "shasum": "" }, "require": { - "php": ">=8.2", + "php": ">=8.4.1", "symfony/service-contracts": "^2.5|^3" }, "type": "library", @@ -2428,7 +2731,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v7.2.2" + "source": "https://github.com/symfony/stopwatch/tree/v8.1.0" }, "funding": [ { @@ -2439,44 +2742,47 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-12-18T14:28:33+00:00" + "time": "2026-05-29T05:06:50+00:00" }, { "name": "symfony/string", - "version": "v7.2.0", + "version": "v8.1.0", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "446e0d146f991dde3e73f45f2c97a9faad773c82" + "reference": "afd5944f4005862d961efb85c8bbd5c523c4e3c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/446e0d146f991dde3e73f45f2c97a9faad773c82", - "reference": "446e0d146f991dde3e73f45f2c97a9faad773c82", + "url": "https://api.github.com/repos/symfony/string/zipball/afd5944f4005862d961efb85c8bbd5c523c4e3c9", + "reference": "afd5944f4005862d961efb85c8bbd5c523c4e3c9", "shasum": "" }, "require": { - "php": ">=8.2", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-intl-grapheme": "~1.0", - "symfony/polyfill-intl-normalizer": "~1.0", - "symfony/polyfill-mbstring": "~1.0" + "php": ">=8.4.1", + "symfony/polyfill-ctype": "^1.8", + "symfony/polyfill-intl-grapheme": "^1.33", + "symfony/polyfill-intl-normalizer": "^1.0", + "symfony/polyfill-mbstring": "^1.0" }, "conflict": { "symfony/translation-contracts": "<2.5" }, "require-dev": { - "symfony/emoji": "^7.1", - "symfony/error-handler": "^6.4|^7.0", - "symfony/http-client": "^6.4|^7.0", - "symfony/intl": "^6.4|^7.0", + "symfony/emoji": "^7.4|^8.0", + "symfony/http-client": "^7.4|^8.0", + "symfony/intl": "^7.4|^8.0", "symfony/translation-contracts": "^2.5|^3.0", - "symfony/var-exporter": "^6.4|^7.0" + "symfony/var-exporter": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -2515,7 +2821,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.2.0" + "source": "https://github.com/symfony/string/tree/v8.1.0" }, "funding": [ { @@ -2526,21 +2832,25 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-11-13T13:31:26+00:00" + "time": "2026-05-29T05:06:50+00:00" } ], "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [], - "plugin-api-version": "2.6.0" + "platform": {}, + "platform-dev": {}, + "plugin-api-version": "2.9.0" } diff --git a/tools/phpstan/composer.lock b/tools/phpstan/composer.lock index 2562dc8..a64a2d1 100644 --- a/tools/phpstan/composer.lock +++ b/tools/phpstan/composer.lock @@ -56,11 +56,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.1.40", + "version": "2.2.5", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/9b2c7aeb83a75d8680ea5e7c9b7fca88052b766b", - "reference": "9b2c7aeb83a75d8680ea5e7c9b7fca88052b766b", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/909c1e5fef7989ac0d0c1c5c42e32a5c4f6198a0", + "reference": "909c1e5fef7989ac0d0c1c5c42e32a5c4f6198a0", "shasum": "" }, "require": { @@ -83,6 +83,17 @@ "license": [ "MIT" ], + "authors": [ + { + "name": "Ondřej Mirtes" + }, + { + "name": "Markus Staab" + }, + { + "name": "Vincent Langlet" + } + ], "description": "PHPStan - PHP Static Analysis Tool", "keywords": [ "dev", @@ -105,20 +116,20 @@ "type": "github" } ], - "time": "2026-02-23T15:04:35+00:00" + "time": "2026-07-05T06:31:06+00:00" }, { "name": "phpstan/phpstan-symfony", - "version": "2.0.14", + "version": "2.0.20", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-symfony.git", - "reference": "678136545a552a33b07f1a59a013f76df286cc34" + "reference": "53f1a6462dbe71fad36ce054caf5e1b725b740fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/678136545a552a33b07f1a59a013f76df286cc34", - "reference": "678136545a552a33b07f1a59a013f76df286cc34", + "url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/53f1a6462dbe71fad36ce054caf5e1b725b740fd", + "reference": "53f1a6462dbe71fad36ce054caf5e1b725b740fd", "shasum": "" }, "require": { @@ -177,9 +188,9 @@ ], "support": { "issues": "https://github.com/phpstan/phpstan-symfony/issues", - "source": "https://github.com/phpstan/phpstan-symfony/tree/2.0.14" + "source": "https://github.com/phpstan/phpstan-symfony/tree/2.0.20" }, - "time": "2026-02-11T12:27:30+00:00" + "time": "2026-06-16T09:17:35+00:00" } ], "packages-dev": [], @@ -190,5 +201,5 @@ "prefer-lowest": false, "platform": {}, "platform-dev": {}, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.9.0" } From beb0ac0c87e4b9517f81dbfb7313aaf7bc281c69 Mon Sep 17 00:00:00 2001 From: Florian Hermann Date: Tue, 18 Aug 2026 09:54:03 +0200 Subject: [PATCH 2/2] MAJ PHPUnit --- .gitignore | 1 + composer.json | 4 +- phpunit.xml.dist | 28 +---- .../DependencyInjection/ConfigurationTest.php | 13 +-- tests/Listener/CommandListenerTest.php | 28 ++++- tests/Listener/RequestListenerTest.php | 4 +- tests/Listener/ResponseListenerTest.php | 105 ++++++++++-------- .../LoggingInteractorDecoratorTest.php | 14 +-- tests/Twig/NewRelicExtensionTest.php | 4 +- 9 files changed, 105 insertions(+), 96 deletions(-) diff --git a/.gitignore b/.gitignore index feec297..2e3e302 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .php_cs.cache +.phpunit.cache /composer.lock /vendor /tools/**/vendor diff --git a/composer.json b/composer.json index 04d4293..cf397d7 100644 --- a/composer.json +++ b/composer.json @@ -25,12 +25,12 @@ "symfony/http-kernel": "^7.4|^8.0" }, "require-dev": { - "matthiasnoback/symfony-dependency-injection-test": "^5.1", + "matthiasnoback/symfony-dependency-injection-test": "^6.3", "symfony/framework-bundle": "^7.4|^8.0", "symfony/phpunit-bridge": "^7.4|^8.0", "twig/twig": "^3.10", "monolog/monolog": "^3.0", - "phpunit/phpunit": "^9.6" + "phpunit/phpunit": "^11.5" }, "autoload": { "psr-4": { "Tiime\\NewRelicBundle\\": "src/" } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index ed0806b..41f6eff 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,24 +1,8 @@ - - - - ./tests - - - - - - + + + + ./tests + + diff --git a/tests/DependencyInjection/ConfigurationTest.php b/tests/DependencyInjection/ConfigurationTest.php index 81465b5..8ad6fe3 100644 --- a/tests/DependencyInjection/ConfigurationTest.php +++ b/tests/DependencyInjection/ConfigurationTest.php @@ -11,6 +11,7 @@ namespace Tiime\NewRelicBundle\Tests\DependencyInjection; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\Processor; use Symfony\Component\Config\Definition\PrototypedArrayNode; @@ -142,9 +143,8 @@ public static function deploymentNamesProvider(): array /** * @param string|string[] $deploymentNameConfig * @param string[] $expected - * - * @dataProvider deploymentNamesProvider */ + #[DataProvider('deploymentNamesProvider')] public function testDeploymentNames(string|array $deploymentNameConfig, array $expected): void { $processor = new Processor(); @@ -159,9 +159,8 @@ public function testDeploymentNames(string|array $deploymentNameConfig, array $e /** * @param string|string[] $ignoredRoutesConfig * @param string[] $expected - * - * @dataProvider ignoredRoutesProvider */ + #[DataProvider('ignoredRoutesProvider')] public function testIgnoreRoutes(string|array $ignoredRoutesConfig, array $expected): void { $processor = new Processor(); @@ -174,9 +173,8 @@ public function testIgnoreRoutes(string|array $ignoredRoutesConfig, array $expec /** * @param string|string[] $ignoredPathsConfig * @param string[] $expected - * - * @dataProvider ignoredPathsProvider */ + #[DataProvider('ignoredPathsProvider')] public function testIgnorePaths(string|array $ignoredPathsConfig, array $expected): void { $processor = new Processor(); @@ -189,9 +187,8 @@ public function testIgnorePaths(string|array $ignoredPathsConfig, array $expecte /** * @param string|string[] $ignoredCommandsConfig * @param string[] $expected - * - * @dataProvider ignoredCommandsProvider */ + #[DataProvider('ignoredCommandsProvider')] public function testIgnoreCommands(string|array $ignoredCommandsConfig, array $expected): void { $processor = new Processor(); diff --git a/tests/Listener/CommandListenerTest.php b/tests/Listener/CommandListenerTest.php index 867d3e7..cbaa7dd 100644 --- a/tests/Listener/CommandListenerTest.php +++ b/tests/Listener/CommandListenerTest.php @@ -44,11 +44,13 @@ public function testCommandMarkedAsBackgroundJob(): void $interactor->expects($this->once())->method('setTransactionName')->with($this->equalTo('test:newrelic')); $interactor->expects($this->once())->method('enableBackgroundJob'); - $interactor->expects($this->exactly(4))->method('addCustomParameter')->withConsecutive( - ['--foo', true], - ['--foobar[0]', 'baz'], - ['--foobar[1]', 'baz_2'], - ['name', 'bar'] + $interactor->expects($this->exactly(4))->method('addCustomParameter')->willReturnCallback( + $this->sequentialAssertionCallback([ + ['--foo', true], + ['--foobar[0]', 'baz'], + ['--foobar[1]', 'baz_2'], + ['name', 'bar'], + ], true) ); $command = new Command('test:newrelic'); @@ -114,4 +116,20 @@ public function testConsoleErrorsWithThrowable(): void $listener = new CommandListener($newrelic, $interactor, ['test:exception']); $listener->onConsoleError($event); } + + /** + * @param array> $expectedCalls + */ + private function sequentialAssertionCallback(array $expectedCalls, mixed $returnValue = null): \Closure + { + $index = 0; + + return static function (...$arguments) use (&$index, $expectedCalls, $returnValue): mixed { + self::assertArrayHasKey($index, $expectedCalls); + self::assertSame($expectedCalls[$index], $arguments); + ++$index; + + return $returnValue; + }; + } } diff --git a/tests/Listener/RequestListenerTest.php b/tests/Listener/RequestListenerTest.php index a340d8b..c118fe6 100644 --- a/tests/Listener/RequestListenerTest.php +++ b/tests/Listener/RequestListenerTest.php @@ -42,9 +42,7 @@ public function testMasterRequest(): void $interactor = $this->getMockBuilder(NewRelicInteractorInterface::class)->getMock(); $interactor->expects($this->once())->method('setTransactionName'); - $namingStrategy = $this->getMockBuilder(TransactionNamingStrategyInterface::class) - ->setMethods(['getTransactionName']) - ->getMock(); + $namingStrategy = $this->getMockBuilder(TransactionNamingStrategyInterface::class)->getMock(); $namingStrategy->expects($this->once())->method('getTransactionName')->willReturn('foobar'); $kernel = $this->getMockBuilder(HttpKernelInterface::class)->getMock(); diff --git a/tests/Listener/ResponseListenerTest.php b/tests/Listener/ResponseListenerTest.php index 6ff7a6f..716bcc3 100644 --- a/tests/Listener/ResponseListenerTest.php +++ b/tests/Listener/ResponseListenerTest.php @@ -11,6 +11,7 @@ namespace Tiime\NewRelicBundle\Tests\Listener; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\ParameterBag; @@ -34,11 +35,11 @@ protected function setUp(): void { $this->interactor = $this->getMockBuilder(NewRelicInteractorInterface::class)->getMock(); $this->newRelic = $this->getMockBuilder(Config::class) - ->setMethods(['getCustomEvents', 'getCustomMetrics', 'getCustomParameters']) + ->onlyMethods(['getCustomEvents', 'getCustomMetrics', 'getCustomParameters']) ->disableOriginalConstructor() ->getMock(); $this->extension = $this->getMockBuilder(NewRelicExtension::class) - ->setMethods(['isHeaderCalled', 'isFooterCalled', 'isUsed']) + ->onlyMethods(['isHeaderCalled', 'isFooterCalled', 'isUsed']) ->disableOriginalConstructor() ->getMock(); } @@ -82,23 +83,29 @@ public function testOnKernelResponseWithOnlyCustomMetricsAndParameters(): void $this->newRelic->expects($this->once())->method('getCustomMetrics')->willReturn($metrics); $this->newRelic->expects($this->once())->method('getCustomParameters')->willReturn($parameters); - $this->interactor->expects($this->exactly(2))->method('addCustomMetric')->withConsecutive( - ['foo_a', 4.7], - ['foo_b', 11] + $this->interactor->expects($this->exactly(2))->method('addCustomMetric')->willReturnCallback( + $this->sequentialAssertionCallback([ + ['foo_a', 4.7], + ['foo_b', 11.0], + ], true) ); - $this->interactor->expects($this->exactly(2))->method('addCustomParameter')->withConsecutive( - ['foo_1', 'bar_1'], - ['foo_2', 'bar_2'] + $this->interactor->expects($this->exactly(2))->method('addCustomParameter')->willReturnCallback( + $this->sequentialAssertionCallback([ + ['foo_1', 'bar_1'], + ['foo_2', 'bar_2'], + ], true) ); - $this->interactor->expects($this->exactly(2))->method('addCustomEvent')->withConsecutive( - ['WidgetSale', [ - 'color' => 'red', - 'weight' => 12.5, - ]], - ['WidgetSale', [ - 'color' => 'blue', - 'weight' => 12.5, - ]] + $this->interactor->expects($this->exactly(2))->method('addCustomEvent')->willReturnCallback( + $this->sequentialAssertionCallback([ + ['WidgetSale', [ + 'color' => 'red', + 'weight' => 12.5, + ]], + ['WidgetSale', [ + 'color' => 'blue', + 'weight' => 12.5, + ]], + ]) ); $event = $this->createFilterResponseEventDummy(); @@ -143,9 +150,7 @@ public function testSymfonyCacheDisabled(): void $object->onKernelResponse($event); } - /** - * @dataProvider providerOnKernelResponseOnlyInstrumentHTMLResponses - */ + #[DataProvider('providerOnKernelResponseOnlyInstrumentHTMLResponses')] public function testOnKernelResponseOnlyInstrumentHTMLResponses(?string $content, ?string $expectsSetContent, string $contentType): void { $this->setupNoCustomMetricsOrParameters(); @@ -154,17 +159,19 @@ public function testOnKernelResponseOnlyInstrumentHTMLResponses(?string $content $this->interactor->expects($this->any())->method('getBrowserTimingHeader')->willReturn('__Timing_Header__'); $this->interactor->expects($this->any())->method('getBrowserTimingFooter')->willReturn('__Timing_Feader__'); - $response = $this->createResponseMock($content, $expectsSetContent, $contentType); + $response = $this->createResponse($content ?? '', $contentType); $event = $this->createFilterResponseEventDummy(null, $response); $object = new ResponseListener($this->newRelic, $this->interactor, true); $object->onKernelResponse($event); + + $this->assertSame($expectsSetContent ?? ($content ?? ''), $response->getContent()); } /** * @return array */ - public function providerOnKernelResponseOnlyInstrumentHTMLResponses(): array + public static function providerOnKernelResponseOnlyInstrumentHTMLResponses(): array { return [ // unsupported content types @@ -201,7 +208,8 @@ public function testInteractionWithTwigExtensionHeader(): void $this->extension->expects($this->once())->method('isFooterCalled')->willReturn(false); $request = $this->createRequestMock(true); - $response = $this->createResponseMock('content', 'content', 'text/html'); + $response = $this->createResponse('content'); + $response->headers->set('Content-Type', 'text/html'); $event = $this->createFilterResponseEventDummy($request, $response); $object = new ResponseListener($this->newRelic, $this->interactor, true, false, $this->extension); @@ -223,7 +231,8 @@ public function testInteractionWithTwigExtensionFooter(): void $this->extension->expects($this->once())->method('isFooterCalled')->willReturn(true); $request = $this->createRequestMock(true); - $response = $this->createResponseMock('content', 'content', 'text/html'); + $response = $this->createResponse('content'); + $response->headers->set('Content-Type', 'text/html'); $event = $this->createFilterResponseEventDummy($request, $response); $object = new ResponseListener($this->newRelic, $this->interactor, true, false, $this->extension); @@ -245,7 +254,8 @@ public function testInteractionWithTwigExtensionHeaderFooter(): void $this->extension->expects($this->once())->method('isFooterCalled')->willReturn(true); $request = $this->createRequestMock(true); - $response = $this->createResponseMock('content', 'content', 'text/html'); + $response = $this->createResponse('content'); + $response->headers->set('Content-Type', 'text/html'); $event = $this->createFilterResponseEventDummy($request, $response); $object = new ResponseListener($this->newRelic, $this->interactor, true, false, $this->extension); @@ -265,33 +275,18 @@ private function setUpNoCustomMetricsOrParameters(): void private function createRequestMock(bool $instrumentEnabled = true): Request { - $mock = $this->getMockBuilder(Request::class) - ->setMethods(['get']) - ->getMock(); - $mock->attributes = new ParameterBag(['_instrument' => $instrumentEnabled]); + $request = new Request(); + $request->attributes = new ParameterBag(['_instrument' => $instrumentEnabled]); - $mock->expects($this->any())->method('get')->willReturn($instrumentEnabled); - - return $mock; + return $request; } - private function createResponseMock(?string $content = null, ?string $expectsSetContent = null, string $contentType = 'text/html'): Response + private function createResponse(string $content = '', string $contentType = 'text/html'): Response { - $mock = $this->getMockBuilder(Response::class) - ->setMethods(['get', 'getContent', 'setContent']) - ->getMock(); - $mock->headers = new ResponseHeaderBag(['Content-Type' => $contentType]); + $response = new Response($content); + $response->headers = new ResponseHeaderBag(['Content-Type' => $contentType]); - $mock->expects($this->any())->method('get')->willReturn($contentType); - $mock->expects($content ? $this->any() : $this->never())->method('getContent')->willReturn($content ?? false); - - if ($expectsSetContent) { - $mock->expects($this->exactly(2))->method('setContent')->withConsecutive([''], [$expectsSetContent]); - } else { - $mock->expects($this->never())->method('setContent'); - } - - return $mock; + return $response; } private function createFilterResponseEventDummy(?Request $request = null, ?Response $response = null, int $requestType = HttpKernelInterface::MAIN_REQUEST): ResponseEvent @@ -300,4 +295,20 @@ private function createFilterResponseEventDummy(?Request $request = null, ?Respo return new ResponseEvent($kernel, $request ?? new Request(), $requestType, $response ?? new Response()); } + + /** + * @param array> $expectedCalls + */ + private function sequentialAssertionCallback(array $expectedCalls, mixed $returnValue = null): \Closure + { + $index = 0; + + return static function (...$arguments) use (&$index, $expectedCalls, $returnValue): mixed { + self::assertArrayHasKey($index, $expectedCalls); + self::assertSame($expectedCalls[$index], $arguments); + ++$index; + + return $returnValue; + }; + } } diff --git a/tests/NewRelic/LoggingInteractorDecoratorTest.php b/tests/NewRelic/LoggingInteractorDecoratorTest.php index 77a47f6..30df42d 100644 --- a/tests/NewRelic/LoggingInteractorDecoratorTest.php +++ b/tests/NewRelic/LoggingInteractorDecoratorTest.php @@ -11,6 +11,7 @@ namespace Tiime\NewRelicBundle\Tests\NewRelic; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Psr\Log\LoggerInterface; use Tiime\NewRelicBundle\NewRelic\LoggingInteractorDecorator; @@ -20,9 +21,8 @@ class LoggingInteractorDecoratorTest extends TestCase { /** * @param array $arguments - * - * @dataProvider provideMethods */ + #[DataProvider('provideMethods')] public function testGeneric(string $method, array $arguments, mixed $return): void { $logger = $this->createMock(LoggerInterface::class); @@ -41,7 +41,7 @@ public function testGeneric(string $method, array $arguments, mixed $return): vo $this->assertSame($return, $result); } - public function provideMethods(): \Generator + public static function provideMethods(): \Generator { $reflection = new \ReflectionClass(NewRelicInteractorInterface::class); foreach ($reflection->getMethods() as $method) { @@ -52,17 +52,17 @@ public function provideMethods(): \Generator continue; } - $arguments = array_map(function (\ReflectionParameter $parameter) { - return $this->getTypeStub($parameter->getType()); + $arguments = array_map(static function (\ReflectionParameter $parameter) { + return self::getTypeStub($parameter->getType()); }, $method->getParameters()); - $return = $method->hasReturnType() ? $this->getTypeStub($method->getReturnType()) : null; + $return = $method->hasReturnType() ? self::getTypeStub($method->getReturnType()) : null; yield [$method->getName(), $arguments, $return]; } } - private function getTypeStub(?\ReflectionType $type): mixed + private static function getTypeStub(?\ReflectionType $type): mixed { if (null === $type) { return uniqid('', true); diff --git a/tests/Twig/NewRelicExtensionTest.php b/tests/Twig/NewRelicExtensionTest.php index b1ac61e..cc4e6a9 100644 --- a/tests/Twig/NewRelicExtensionTest.php +++ b/tests/Twig/NewRelicExtensionTest.php @@ -25,8 +25,8 @@ class NewRelicExtensionTest extends TestCase protected function setUp(): void { $this->newRelic = $this->getMockBuilder(Config::class) - ->setMethods(['getCustomMetrics', 'getCustomParameters']) - ->disableOriginalConstructor() + ->onlyMethods(['getCustomMetrics', 'getCustomParameters']) + ->disableOriginalConstructor() ->getMock(); $this->interactor = $this->getMockBuilder(NewRelicInteractorInterface::class)->getMock(); }