Skip to content

Commit

Permalink
Fix phpcs build error on graphql disable session error
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Pawinski committed Nov 14, 2023
1 parent efb02e0 commit 1d54ee8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
fail-fast: false
matrix:
php:
- "7.4"
- "8.1"
- "8.2"
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
Expand Down
3 changes: 2 additions & 1 deletion Model/Info/RequestInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d54ee8

Please sign in to comment.