mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-25 02:21:01 +00:00
Update phpunit dep for phpstan
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
parent
6a044f8c6e
commit
9a4ff85cf5
3 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -87,5 +87,7 @@ class UsernameFeedTokenConverter implements ParamConverterInterface
|
|||
|
||||
// Map found user to the route's parameter
|
||||
$request->attributes->set($configuration->getName(), $user);
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue