Update phpunit dep for phpstan

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
Kevin Decherf 2021-08-05 22:33:04 +02:00
parent 6a044f8c6e
commit 9a4ff85cf5
3 changed files with 6 additions and 2 deletions

View file

@ -8,6 +8,6 @@ parameters:
container_xml_path: %rootDir%/../../../var/cache/test/appTestDebugProjectContainer.xml
bootstrapFiles:
- vendor/bin/.phpunit/phpunit-8.3-0/vendor/autoload.php
- vendor/bin/.phpunit/phpunit-8.5-0/vendor/autoload.php
inferPrivatePropertyTypeFromConstructor: true

View file

@ -87,5 +87,7 @@ class UsernameFeedTokenConverter implements ParamConverterInterface
// Map found user to the route's parameter
$request->attributes->set($configuration->getName(), $user);
return true;
}
}

View file

@ -373,13 +373,15 @@ class User extends BaseUser implements EmailTwoFactorInterface, GoogleTwoFactorI
/**
* Only used by the API when creating a new user it'll also return the first client (which was also created at the same time).
*
* @return Client
* @return Client|false
*/
public function getFirstClient()
{
if (!empty($this->clients)) {
return $this->clients->first();
}
return false;
}
/**