NullMethodCall
A method is called on a value that is possibly null.
Example
Section titled “Example”<?phpfunction find(): ?Item { return null; }
find()->process(); // may be nullHow to fix
Section titled “How to fix”Guard with a null check or use the null-safe operator ?->.
<?phpfind()?->process();