diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4c66427..d086353 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,8 +8,8 @@ jobs: fail-fast: false matrix: php: - - "7.4" - "8.1" + - "8.2" steps: - name: "Checkout" uses: "actions/checkout@v3" diff --git a/Model/Info/RequestInfo.php b/Model/Info/RequestInfo.php index 6cd479f..0b90a1b 100644 --- a/Model/Info/RequestInfo.php +++ b/Model/Info/RequestInfo.php @@ -134,7 +134,8 @@ public function getStatusCode(): int */ public function getSessionAttributes(): array { - return session_status() ? $_SESSION : []; // phpcs:ignore Magento2.Security.Superglobal.SuperglobalUsageError + // phpcs:ignore Magento2.Functions.DiscouragedFunction.Discouraged,Magento2.Security.Superglobal.SuperglobalUsageError + return session_status() ? $_SESSION : []; } public function getPathInfo(): string diff --git a/Readme.md b/Readme.md index 73bc2eb..ed1ee21 100644 --- a/Readme.md +++ b/Readme.md @@ -16,8 +16,8 @@ Module for debugging Magento 2 performance. It works without overwriting any cor All settings have only default scope and config type pool is set to environment for better integration with `php bin/magento app:config:dump` ## Compatibility -* Magento 2.4 -* PHP 7.4, 8.1 +* Magento >= 2.4.4 +* PHP 8.1, 8.2 ## Profiler collectors - Ajax diff --git a/composer.json b/composer.json index 4724663..0f7e2ad 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "AFL-3.0" ], "require": { - "php": ">=7.4", + "php": ">=8.1", "magento/framework": "~103.0", "magento/module-backend": "~102.0", "magento/module-developer": "^100.4", @@ -17,16 +17,16 @@ "symfony/stopwatch": "^2.8 || ^3.0 || ^4.0 || ^5.0" }, "require-dev": { - "bitexpert/phpstan-magento": "^0.28.0", + "bitexpert/phpstan-magento": "^0.29.0", "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", "magento/magento-coding-standard": "*", "phpcompatibility/php-compatibility": "^9.3", "phpmd/phpmd": "^2.9.1", - "phpstan/phpstan": "~1.9.0", + "phpstan/phpstan": "~1.10.41", "phpunit/phpunit": "~9.5.0", "sebastian/phpcpd": "^6.0.3", "slevomat/coding-standard": "~6.4.1", - "squizlabs/php_codesniffer": "~3.6.0", + "squizlabs/php_codesniffer": "~3.7.2", "phpstan/phpstan-phpunit": "^1.1.1" }, "repositories": [