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
/**
* Set the currently logged in user for the application.
*
* @return TestCase
*/
function actingAs(Authenticatable $user, string $driver = null)
{
return test()->actingAs(...func_get_args());
}
🧑🏭 Context
I have security and code quality needs, i can't simply avoid errors with an ignore line in
phpstan.neon
like this :I find the way by replacing all
$this
withtest()
:Before, with Larastan error
After, without larastan error
I made some
dd()
and check the content, it seems ok.❓Question
But before review all my test suite, I need a confirmation :
Pest Version
2.8.1
PHP Version
8.2.13
Operation System
Windows & MacOS
The text was updated successfully, but these errors were encountered: