Skip to content

Commit 26e59cd

Browse files
committed
Fix incorrect versions error (ForbiddenThisUseContexts)
PHPCompatibility erroneously flags the use of $this in enumerations. Commit 5e248cf moved disabling of this error check to .github/workflows/main.yml Hence, `composer versions` and `composer check` should also exclude this check.
1 parent 7c973ab commit 26e59cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"check": [
4848
"./bin/check-phpdoc-types",
4949
"phpcs samples/ src/ tests/ --report=checkstyle",
50-
"phpcs samples/ src/ tests/ --standard=PHPCompatibility --runtime-set testVersion 8.0- -n",
50+
"phpcs samples/ src/ tests/ --standard=PHPCompatibility --runtime-set testVersion 8.0- --exclude=PHPCompatibility.Variables.ForbiddenThisUseContexts -n",
5151
"php-cs-fixer fix --ansi --dry-run --diff",
5252
"phpunit --color=always",
5353
"phpstan analyse --ansi --memory-limit=2048M"
@@ -61,7 +61,7 @@
6161
"php-cs-fixer fix"
6262
],
6363
"versions": [
64-
"phpcs samples/ src/ tests/ --standard=PHPCompatibility --runtime-set testVersion 8.0- -n"
64+
"phpcs samples/ src/ tests/ --standard=PHPCompatibility --runtime-set testVersion 8.0- --exclude=PHPCompatibility.Variables.ForbiddenThisUseContexts -n"
6565
]
6666
},
6767
"require": {

0 commit comments

Comments
 (0)