Skip to content

Fix php-cs-fixer single_quote violation in SecurityController - #84

Merged
paulotruta merged 1 commit into
release/1.4.0from
fix/cs-single-quote-release-1.4.0
Jul 5, 2026
Merged

Fix php-cs-fixer single_quote violation in SecurityController#84
paulotruta merged 1 commit into
release/1.4.0from
fix/cs-single-quote-release-1.4.0

Conversation

@paulotruta

Copy link
Copy Markdown
Member

Summary

Fixes the failing php-cs-fixer job on the release/1.4.0 PR (#82).

The single_quote rule in .php-cs-fixer.dist.php flagged src/Controller/SecurityController.php because the argument to $this->isGranted(...) was wrapped in double quotes. PHP CS Fixer requires single quotes for string literals where there is no interpolation.

Change

- if ($this->isGranted("IS_AUTHENTICATED_FULLY")) {
+ if ($this->isGranted('IS_AUTHENTICATED_FULLY')) {

Test plan

  • Verified the file now contains single quotes via grep "isGranted" src/Controller/SecurityController.php.
  • Re-run the php-cs-fixer GitHub Action and confirm it passes.

Use single quotes for the IS_AUTHENTICATED_FULLY argument to satisfy
the single_quote rule in .php-cs-fixer.dist.php.
@paulotruta
paulotruta merged commit a853f4b into release/1.4.0 Jul 5, 2026
4 checks passed
@paulotruta
paulotruta deleted the fix/cs-single-quote-release-1.4.0 branch July 5, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant