Skip to content

Commit 5e0f470

Browse files
committed
4.0 | Wiki/Advanced Usage: update information about deprecated/remove ignore annotations
1 parent 93f71d1 commit 5e0f470

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wiki/Advanced-Usage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ $xmlPackage->send();
4646

4747
> [!NOTE]
4848
> Before PHP_CodeSniffer version 3.2.0, use `// @codingStandardsIgnoreFile` instead of `// phpcs:ignoreFile`.
49-
> The `@codingStandards` syntax is deprecated and will be removed in PHP_CodeSniffer version 4.0.
49+
> The `@codingStandards*` syntax is deprecated since PHP_CodeSniffer 3.2.0 and has been removed in PHP_CodeSniffer version 4.0.
5050
5151
> [!TIP]
5252
> The `phpcs:ignoreFile` comment syntax does not allow for a specific set of sniffs to be ignored for a file. Use the `phpcs:disable` comment syntax if you want to disable a specific set of sniffs for the entire file.
@@ -81,7 +81,7 @@ $xmlPackage->send();
8181

8282
> [!NOTE]
8383
> Before PHP_CodeSniffer version 3.2.0, use `// @codingStandardsIgnoreStart` instead of `// phpcs:disable`, and use `// @codingStandardsIgnoreEnd` instead of `// phpcs:enable`.
84-
> The `@codingStandards` syntax is deprecated and will be removed in PHP_CodeSniffer version 4.0.
84+
> The `@codingStandards*` syntax is deprecated since PHP_CodeSniffer 3.2.0 and has been removed in PHP_CodeSniffer version 4.0.
8585
8686
If you don't want to disable all coding standard errors, you can selectively disable and re-enable specific error message codes, sniffs, categories of sniffs, or entire coding standards. The following example disables the specific `Generic.Commenting.Todo.Found` message and then re-enables all checks at the end.
8787

@@ -128,7 +128,7 @@ bar($foo, false);
128128

129129
> [!NOTE]
130130
> Before PHP_CodeSniffer version 3.2.0, use `// @codingStandardsIgnoreLine` instead of `// phpcs:ignore`.
131-
> The `@codingStandards` syntax is deprecated and will be removed in PHP_CodeSniffer version 4.0.
131+
> The `@codingStandards*` syntax is deprecated since PHP_CodeSniffer 3.2.0 and has been removed in PHP_CodeSniffer version 4.0.
132132
133133
Again, you can selectively ignore one or more specific error message codes, sniffs, categories of sniffs, or entire standards.
134134

0 commit comments

Comments
 (0)