Skip to content

Commit 889be18

Browse files
committed
4.0 dev upgrade guide: add note about changed format of Common::$allowedTypes
Fixes PHPCSStandards/PHP_CodeSniffer 1143
1 parent a212b66 commit 889be18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wiki/Version-4.0-Developer-Upgrade-Guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ The `protected` `getDeclarationNameWithNamespace()` and `getNamespaceOfScope()`
528528

529529
| Search for | Replace with | Notes |
530530
| ----------------------------------- | ------------------------------------ | -------- |
531-
| (`public`) `PHP_CodeSniffer\Util\Common::$allowedTypes` | `PHP_CodeSniffer\Util\Common::ALLOWED_TYPES` | |
531+
| (`public`) `PHP_CodeSniffer\Util\Common::$allowedTypes` | `PHP_CodeSniffer\Util\Common::ALLOWED_TYPES` | The format of the array has changed from numerically indexed to associated with the keys and values containing the same information. |
532532
| (`public`) `PHP_CodeSniffer\Tokenizers\PHP::$tstringContexts` | `PHP_CodeSniffer\Tokenizers\PHP::T_STRING_CONTEXTS` | |
533533
| (`protected`) `PHP_CodeSniffer\Sniffs\AbstractVariableSniff::$phpReservedVars` | `PHP_CodeSniffer\Sniffs\AbstractVariableSniff::PHP_RESERVED_VARS` | |
534534
| (`protected`) `PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions\CamelCapsFunctionNameSniff::$magicMethods` | `PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions\CamelCapsFunctionNameSniff::MAGIC_METHODS` | This also affects the `PHP_CodeSniffer\Standards\PSR1\Sniffs\Methods\CamelCapsMethodNameSniff` class which extends the `CamelCapsFunctionNameSniff` |

0 commit comments

Comments
 (0)