Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve documentation for InvalidGlobal to explain that it's sometime…
…s valid.
- Loading branch information
1 parent
2e2099e
commit c1077f3
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
# InvalidGlobal | ||
|
||
Emitted when there's a reference to the global keyword where it's not expected | ||
Emitted when there's a reference to the global keyword where it's not expected. | ||
|
||
```php | ||
<?php | ||
|
||
global $e; | ||
``` | ||
|
||
If the file is included from a non-global scope this issue will have to be suppressed. See | ||
[Config suppression](../dealing_with_code_issues/#suppressing-issues) for how to suppress this at the file or directory | ||
level. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters