From 2b37dfe4763c817b96c32b8a139150cf14cd5894 Mon Sep 17 00:00:00 2001 From: Michael Hoffmann Date: Mon, 12 Feb 2024 23:34:27 +0100 Subject: [PATCH] Update to PHP8.3 --- .github/workflows/php-ci.yml | 2 +- composer.json | 8 +- composer.lock | 171 ++++++++---------- docker/backend/Dockerfile | 24 +-- docker/backend/apache/gib-potato.conf | 2 +- .../backend/supervisord/conf.d/php-fpm.conf | 2 +- src/Middleware/SentryMiddleware.php | 2 +- 7 files changed, 98 insertions(+), 113 deletions(-) diff --git a/.github/workflows/php-ci.yml b/.github/workflows/php-ci.yml index 2a4acf9..9dc387d 100644 --- a/.github/workflows/php-ci.yml +++ b/.github/workflows/php-ci.yml @@ -35,7 +35,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.3' extensions: mbstring, intl - name: Run composer install diff --git a/composer.json b/composer.json index 2f55008..4622bf1 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ } ], "require": { - "php": ">=8.1", + "php": ">=8.3", "cakephp/authentication": "^3.0.3", "cakephp/cakephp": "dev-5.next as 5.0.4", "cakephp/migrations": "^4.1.1", @@ -21,10 +21,10 @@ "sentry/sentry": "^4.5.0" }, "require-dev": { - "cakephp/bake": "^3.0.6", + "cakephp/bake": "^3.1", "cakephp/cakephp-codesniffer": "^5.1.1", - "phpstan/phpstan": "^1.10.57", - "phpunit/phpunit": "^10.5.9" + "phpstan/phpstan": "^1.10.58", + "phpunit/phpunit": "^10.5.10" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index a59e0a5..3a50a7e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6f1eaedfef17707483e5b8c78179fa38", + "content-hash": "5efad170590132607744dfb2ad6eb2cc", "packages": [ { "name": "cakephp/authentication", @@ -80,12 +80,12 @@ "source": { "type": "git", "url": "https://github.com/cakephp/cakephp.git", - "reference": "b2d2bf5996e6d16f51f0d041fa76da892f363c29" + "reference": "3fdc6166603ab2bd61c55c59753e3976e65326b8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/cakephp/cakephp/zipball/b2d2bf5996e6d16f51f0d041fa76da892f363c29", - "reference": "b2d2bf5996e6d16f51f0d041fa76da892f363c29", + "url": "https://api.github.com/repos/cakephp/cakephp/zipball/3fdc6166603ab2bd61c55c59753e3976e65326b8", + "reference": "3fdc6166603ab2bd61c55c59753e3976e65326b8", "shasum": "" }, "require": { @@ -193,7 +193,7 @@ "issues": "https://github.com/cakephp/cakephp/issues", "source": "https://github.com/cakephp/cakephp" }, - "time": "2024-01-23T20:48:40+00:00" + "time": "2024-02-05T15:38:02+00:00" }, { "name": "cakephp/chronos", @@ -1739,16 +1739,16 @@ }, { "name": "symfony/config", - "version": "v7.0.0", + "version": "v7.0.3", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "8789646600f4e7e451dde9e1dc81cfa429f3857a" + "reference": "86a5027869ca3d6bdecae6d5d6c2f77c8f2c1d16" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/8789646600f4e7e451dde9e1dc81cfa429f3857a", - "reference": "8789646600f4e7e451dde9e1dc81cfa429f3857a", + "url": "https://api.github.com/repos/symfony/config/zipball/86a5027869ca3d6bdecae6d5d6c2f77c8f2c1d16", + "reference": "86a5027869ca3d6bdecae6d5d6c2f77c8f2c1d16", "shasum": "" }, "require": { @@ -1794,7 +1794,7 @@ "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/config/tree/v7.0.0" + "source": "https://github.com/symfony/config/tree/v7.0.3" }, "funding": [ { @@ -1810,20 +1810,20 @@ "type": "tidelift" } ], - "time": "2023-11-09T08:30:23+00:00" + "time": "2024-01-30T08:34:29+00:00" }, { "name": "symfony/console", - "version": "v7.0.2", + "version": "v7.0.3", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "f8587c4cdc5acad67af71c37db34ef03af91e59c" + "reference": "c5010d50f1ee4b25cfa0201d9915cf1b14071456" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/f8587c4cdc5acad67af71c37db34ef03af91e59c", - "reference": "f8587c4cdc5acad67af71c37db34ef03af91e59c", + "url": "https://api.github.com/repos/symfony/console/zipball/c5010d50f1ee4b25cfa0201d9915cf1b14071456", + "reference": "c5010d50f1ee4b25cfa0201d9915cf1b14071456", "shasum": "" }, "require": { @@ -1887,7 +1887,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.0.2" + "source": "https://github.com/symfony/console/tree/v7.0.3" }, "funding": [ { @@ -1903,7 +1903,7 @@ "type": "tidelift" } ], - "time": "2023-12-10T16:54:46+00:00" + "time": "2024-01-23T15:02:46+00:00" }, { "name": "symfony/deprecation-contracts", @@ -1974,16 +1974,16 @@ }, { "name": "symfony/filesystem", - "version": "v7.0.0", + "version": "v7.0.3", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "7da8ea2362a283771478c5f7729cfcb43a76b8b7" + "reference": "2890e3a825bc0c0558526c04499c13f83e1b6b12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/7da8ea2362a283771478c5f7729cfcb43a76b8b7", - "reference": "7da8ea2362a283771478c5f7729cfcb43a76b8b7", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/2890e3a825bc0c0558526c04499c13f83e1b6b12", + "reference": "2890e3a825bc0c0558526c04499c13f83e1b6b12", "shasum": "" }, "require": { @@ -2017,7 +2017,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.0.0" + "source": "https://github.com/symfony/filesystem/tree/v7.0.3" }, "funding": [ { @@ -2033,7 +2033,7 @@ "type": "tidelift" } ], - "time": "2023-07-27T06:33:22+00:00" + "time": "2024-01-23T15:02:46+00:00" }, { "name": "symfony/options-resolver", @@ -2104,16 +2104,16 @@ }, { "name": "symfony/polyfill-ctype", - "version": "v1.28.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb" + "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb", - "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ef4d7e442ca910c4764bce785146269b30cb5fc4", + "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4", "shasum": "" }, "require": { @@ -2127,9 +2127,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -2166,7 +2163,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.28.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.29.0" }, "funding": [ { @@ -2182,20 +2179,20 @@ "type": "tidelift" } ], - "time": "2023-01-26T09:26:14+00:00" + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.28.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "875e90aeea2777b6f135677f618529449334a612" + "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/875e90aeea2777b6f135677f618529449334a612", - "reference": "875e90aeea2777b6f135677f618529449334a612", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/32a9da87d7b3245e09ac426c83d334ae9f06f80f", + "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f", "shasum": "" }, "require": { @@ -2206,9 +2203,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -2247,7 +2241,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.28.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.29.0" }, "funding": [ { @@ -2263,20 +2257,20 @@ "type": "tidelift" } ], - "time": "2023-01-26T09:26:14+00:00" + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.28.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92" + "reference": "bc45c394692b948b4d383a08d7753968bed9a83d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92", - "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/bc45c394692b948b4d383a08d7753968bed9a83d", + "reference": "bc45c394692b948b4d383a08d7753968bed9a83d", "shasum": "" }, "require": { @@ -2287,9 +2281,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -2331,7 +2322,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.28.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.29.0" }, "funding": [ { @@ -2347,20 +2338,20 @@ "type": "tidelift" } ], - "time": "2023-01-26T09:26:14+00:00" + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.28.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "42292d99c55abe617799667f454222c54c60e229" + "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/42292d99c55abe617799667f454222c54c60e229", - "reference": "42292d99c55abe617799667f454222c54c60e229", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9773676c8a1bb1f8d4340a62efe641cf76eda7ec", + "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec", "shasum": "" }, "require": { @@ -2374,9 +2365,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -2414,7 +2402,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.28.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.29.0" }, "funding": [ { @@ -2430,7 +2418,7 @@ "type": "tidelift" } ], - "time": "2023-07-28T09:04:16+00:00" + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/service-contracts", @@ -2516,16 +2504,16 @@ }, { "name": "symfony/string", - "version": "v7.0.2", + "version": "v7.0.3", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "cc78f14f91f5e53b42044d0620961c48028ff9f5" + "reference": "524aac4a280b90a4420d8d6a040718d0586505ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/cc78f14f91f5e53b42044d0620961c48028ff9f5", - "reference": "cc78f14f91f5e53b42044d0620961c48028ff9f5", + "url": "https://api.github.com/repos/symfony/string/zipball/524aac4a280b90a4420d8d6a040718d0586505ac", + "reference": "524aac4a280b90a4420d8d6a040718d0586505ac", "shasum": "" }, "require": { @@ -2582,7 +2570,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.0.2" + "source": "https://github.com/symfony/string/tree/v7.0.3" }, "funding": [ { @@ -2598,7 +2586,7 @@ "type": "tidelift" } ], - "time": "2023-12-10T16:54:46+00:00" + "time": "2024-01-29T15:41:16+00:00" } ], "packages-dev": [ @@ -2653,23 +2641,23 @@ }, { "name": "cakephp/bake", - "version": "3.0.6", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/cakephp/bake.git", - "reference": "3fe0de83b2bf2ebbe95b67c7eed221c74044d81e" + "reference": "d5ae87b5f77d35335c1ee026ba55b7213f9393ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/cakephp/bake/zipball/3fe0de83b2bf2ebbe95b67c7eed221c74044d81e", - "reference": "3fe0de83b2bf2ebbe95b67c7eed221c74044d81e", + "url": "https://api.github.com/repos/cakephp/bake/zipball/d5ae87b5f77d35335c1ee026ba55b7213f9393ba", + "reference": "d5ae87b5f77d35335c1ee026ba55b7213f9393ba", "shasum": "" }, "require": { "brick/varexporter": "^0.4.0", - "cakephp/cakephp": "^5.0.0", + "cakephp/cakephp": "^5.0.3", "cakephp/twig-view": "^2.0.0", - "nikic/php-parser": "^4.13.2", + "nikic/php-parser": "^4.13.2 || ^5.0.0", "php": ">=8.1" }, "require-dev": { @@ -2704,7 +2692,7 @@ "issues": "https://github.com/cakephp/bake/issues", "source": "https://github.com/cakephp/bake" }, - "time": "2024-01-21T15:24:58+00:00" + "time": "2024-01-30T15:09:37+00:00" }, { "name": "cakephp/cakephp-codesniffer", @@ -3238,16 +3226,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.10.57", + "version": "1.10.58", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "1627b1d03446904aaa77593f370c5201d2ecc34e" + "reference": "a23518379ec4defd9e47cbf81019526861623ec2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/1627b1d03446904aaa77593f370c5201d2ecc34e", - "reference": "1627b1d03446904aaa77593f370c5201d2ecc34e", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/a23518379ec4defd9e47cbf81019526861623ec2", + "reference": "a23518379ec4defd9e47cbf81019526861623ec2", "shasum": "" }, "require": { @@ -3296,7 +3284,7 @@ "type": "tidelift" } ], - "time": "2024-01-24T11:51:34+00:00" + "time": "2024-02-12T20:02:57+00:00" }, { "name": "phpunit/php-code-coverage", @@ -3621,16 +3609,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.5.9", + "version": "10.5.10", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "0bd663704f0165c9e76fe4f06ffa6a1ca727fdbe" + "reference": "50b8e314b6d0dd06521dc31d1abffa73f25f850c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0bd663704f0165c9e76fe4f06ffa6a1ca727fdbe", - "reference": "0bd663704f0165c9e76fe4f06ffa6a1ca727fdbe", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/50b8e314b6d0dd06521dc31d1abffa73f25f850c", + "reference": "50b8e314b6d0dd06521dc31d1abffa73f25f850c", "shasum": "" }, "require": { @@ -3702,7 +3690,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.9" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.10" }, "funding": [ { @@ -3718,7 +3706,7 @@ "type": "tidelift" } ], - "time": "2024-01-22T14:35:40+00:00" + "time": "2024-02-04T09:07:51+00:00" }, { "name": "sebastian/cli-parser", @@ -4782,16 +4770,16 @@ }, { "name": "symfony/polyfill-php80", - "version": "v1.28.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5" + "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/6caa57379c4aec19c0a12a38b59b26487dcfe4b5", - "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", + "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", "shasum": "" }, "require": { @@ -4799,9 +4787,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -4845,7 +4830,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.28.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.29.0" }, "funding": [ { @@ -4861,7 +4846,7 @@ "type": "tidelift" } ], - "time": "2023-01-26T09:26:14+00:00" + "time": "2024-01-29T20:11:03+00:00" }, { "name": "theseer/tokenizer", @@ -5069,7 +5054,7 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": ">=8.1" + "php": ">=8.3" }, "platform-dev": [], "plugin-api-version": "2.3.0" diff --git a/docker/backend/Dockerfile b/docker/backend/Dockerfile index 0af0e7b..97f83b9 100644 --- a/docker/backend/Dockerfile +++ b/docker/backend/Dockerfile @@ -19,14 +19,14 @@ RUN \ ca-certificates \ supervisor \ apache2 \ - php8.2 \ - php8.2-curl \ - php8.2-fpm \ - php8.2-intl \ - php8.2-mbstring \ - php8.2-pgsql \ - php8.2-xml \ - php8.2-zip \ + php8.3 \ + php8.3-curl \ + php8.3-fpm \ + php8.3-intl \ + php8.3-mbstring \ + php8.3-pgsql \ + php8.3-xml \ + php8.3-zip \ php-excimer && \ rm -rf /var/lib/apt/lists/* @@ -35,14 +35,14 @@ COPY ./docker/backend/apache/gib-potato.conf /etc/apache2/sites-available/gib-po RUN \ a2ensite gib-potato && \ - a2enconf php8.2-fpm && \ + a2enconf php8.3-fpm && \ a2enmod proxy_fcgi && \ a2enmod rewrite && \ phpenmod -s fpm excimer && \ # Enable zend.assertions # Development Value: 1 - sed -i "s/zend.assertions = -1/zend.assertions = 1/g" /etc/php/8.2/fpm/php.ini && \ - sed -i "s/;clear_env = no/clear_env = no/g" /etc/php/8.2/fpm/pool.d/www.conf && \ + sed -i "s/zend.assertions = -1/zend.assertions = 1/g" /etc/php/8.3/fpm/php.ini && \ + sed -i "s/;clear_env = no/clear_env = no/g" /etc/php/8.3/fpm/pool.d/www.conf && \ sed -i "s/Listen 80/Listen 8080/g" /etc/apache2/ports.conf RUN mkdir -p /run/php/ @@ -87,7 +87,7 @@ FROM php-local as php-prod # Disable zend.assertions again # -1: Do not compile at all -RUN sed -i "s/zend.assertions = 1/zend.assertions = -1/g" /etc/php/8.2/fpm/php.ini +RUN sed -i "s/zend.assertions = 1/zend.assertions = -1/g" /etc/php/8.3/fpm/php.ini WORKDIR /var/www/gib-potato diff --git a/docker/backend/apache/gib-potato.conf b/docker/backend/apache/gib-potato.conf index 0e2daed..cc50b6d 100755 --- a/docker/backend/apache/gib-potato.conf +++ b/docker/backend/apache/gib-potato.conf @@ -2,7 +2,7 @@ DocumentRoot /var/www/gib-potato/webroot - SetHandler "proxy:unix:/run/php/php8.2-fpm.sock|fcgi://localhost" + SetHandler "proxy:unix:/run/php/php8.3-fpm.sock|fcgi://localhost" diff --git a/docker/backend/supervisord/conf.d/php-fpm.conf b/docker/backend/supervisord/conf.d/php-fpm.conf index b5dc9b7..c537c5b 100644 --- a/docker/backend/supervisord/conf.d/php-fpm.conf +++ b/docker/backend/supervisord/conf.d/php-fpm.conf @@ -1,5 +1,5 @@ [program:php-fpm] -command = /usr/sbin/php-fpm8.2 --nodaemonize --fpm-config /etc/php/8.2/fpm/php-fpm.conf +command = /usr/sbin/php-fpm8.3 --nodaemonize --fpm-config /etc/php/8.3/fpm/php-fpm.conf autostart=true autorestart=true priority=5 diff --git a/src/Middleware/SentryMiddleware.php b/src/Middleware/SentryMiddleware.php index 15a49e5..d40b534 100644 --- a/src/Middleware/SentryMiddleware.php +++ b/src/Middleware/SentryMiddleware.php @@ -83,7 +83,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface EventManager::instance()->on( 'Server.terminate', - function (Event $event) use ($transaction): void{ + function (Event $event) use ($transaction): void { $transaction->finish(); metrics()->flush(); },