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 9, 2023
1 parent efb02e0 commit 61f2846
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ All settings have only default scope and config type pool is set to environment

## Compatibility
* Magento 2.4
* PHP 7.4, 8.1
* PHP 7.4, 8.1, 8.2

## Profiler collectors
- Ajax
Expand Down

0 comments on commit 61f2846

Please sign in to comment.