You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use phpstan with nette and I have a problem with not recognizing Nette Events (even if this should be supported according to README).
My code looks like this:
trait CommonTrait
{
use SmartObject;
/** @var array */
public $onUpdate = [];
...
public function insert($data) {
...
$this->onUpdate($data);
}
But after running PHP stan with Nette extension I am getting these errors: Call to an undefined method App\Model\Db\Languages::onUpdate()
And it is the same with other classes using this trait.
I am using Nette 2.4 and the latest PHPStan shim and I have tried that the Nette extension loads correctly.
The text was updated successfully, but these errors were encountered:
I am trying to use phpstan with nette and I have a problem with not recognizing Nette Events (even if this should be supported according to README).
My code looks like this:
But after running PHP stan with Nette extension I am getting these errors:
Call to an undefined method App\Model\Db\Languages::onUpdate()
And it is the same with other classes using this trait.
I am using Nette 2.4 and the latest PHPStan shim and I have tried that the Nette extension loads correctly.
The text was updated successfully, but these errors were encountered: