# NullReference

Emitted when attempting to call a method on `null`

```php
<?php

$a = null;
$a->foo();
```

## Further resources

- [CWE-476](https://cwe.mitre.org/data/definitions/476.html)
