Throw NullPointerExceptions in PHP 7 for null->method()