overtrue / phplint

:bug: A tool that can speed up linting of php files by running several lint processes at once.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to detect undefined parameters or variables

nwaughachukwuma opened this issue · comments

Hi @overtrue, is this package able to capture errors for undefined/uninitialized variables? For example

// $user = Auth::user(); <-- commented this out so $user is not initialized in next lin
$user->notify(new NewTicketPurchase());

will the package discover that the $user in second line is not initialized?

Awesome @overtrue, thanks!