mirror of
https://github.com/danog/psalm.git
synced 2024-12-12 01:09:38 +01:00
15 lines
200 B
Markdown
15 lines
200 B
Markdown
# PossiblyNullReference
|
|
|
|
Emitted when trying to call a method on a possibly null value
|
|
|
|
```php
|
|
<?php
|
|
|
|
class A {
|
|
public function bar() : void {}
|
|
}
|
|
function foo(?A $a) : void {
|
|
$a->bar();
|
|
}
|
|
```
|