diff --git a/docs/running_psalm/issues/InvalidGlobal.md b/docs/running_psalm/issues/InvalidGlobal.md index b5a8999322d..bbc8e9b296e 100644 --- a/docs/running_psalm/issues/InvalidGlobal.md +++ b/docs/running_psalm/issues/InvalidGlobal.md @@ -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 collect_initializations && !$global_context) { IssueBuffer::maybeAdd( new InvalidGlobal( - 'Cannot use global scope here', + 'Cannot use global scope here (unless this file is included from a non-global scope)', new CodeLocation($statements_analyzer, $stmt) ), $statements_analyzer->getSource()->getSuppressedIssues()