-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7693 from AndrolGenhald/improve-invalid-global-do…
…cumentation
- Loading branch information
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