Back to Psalm

InvalidGlobal

docs/running_psalm/issues/InvalidGlobal.md

6.16.1348 B
Original Source

InvalidGlobal

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 for how to suppress this at the file or directory level.