for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Jasny\Auth\Event;
use Jasny\Auth\Auth;
use Jasny\Auth\UserInterface as User;
/**
* Base class for all auth events.
*/
abstract class AbstractEvent
{
protected User $user;
* AbstractEvent constructor.
public function __construct(Auth $_, User $user)
$_
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function __construct(/** @scrutinizer ignore-unused */ Auth $_, User $user)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$this->user = $user;
}
* Get the user.
final public function user(): User
return $this->user;
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.