If we have code something like this
Livewire::actingAs($user->fresh())->test(Index::class);
Phpstan gives error like this
Unable to resolve the template type TComponent in call to method Livewire\LivewireManager::test()
馃 argument.templateType
Also if we do something like this it does not give error.
$this->actingAs($user->fresh());
$component = Livewire::test(Index::class);
If we have code something like this
Phpstan gives error like this
Also if we do something like this it does not give error.