for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\User;
use Yiisoft\Auth\Middleware\Authentication;
use Yiisoft\RequestModel\RequestModel;
final class UserRequest extends RequestModel
{
public function getUser(): User
/**
* @var User $identity
*/
return $this->getAttributeValue('attributes.' . Authentication::class);
}