Skip to content

Commit f716f87

Browse files
gsherwoodjrfnl
authored andcommitted
Fixed language around phpcs:ignore annotation (issues #3657)
1 parent eb3e4ee commit f716f87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wiki/Advanced-Usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ bar($foo,false);
103103
104104
> Note: Selective disabling and re-enabling of codes/sniffs/categories/standards is only available from PHP_CodeSniffer version 3.2.0 onwards.
105105
106-
You can also ignore a single line using the `phpcs:ignore` comment. This comment will ignore the line that the comment is on, and the following line. It is typically used like this:
106+
You can also ignore a single line using the `phpcs:ignore` comment. If placed on a line by itself, this comment will ignore the line that the comment is on and the following line. It is typically used like this:
107107

108108
```php
109109
// phpcs:ignore
110110
$foo = [1,2,3];
111111
bar($foo, false);
112112
```
113113

114-
Or like this:
114+
Or if the comment is placed on a line that also contains code, only that line will be ignored:
115115

116116
```php
117117
$foo = [1,2,3]; // phpcs:ignore

0 commit comments

Comments
 (0)