Skip to content

Commit

Permalink
Update phpunit dep for phpstan
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Decherf <[email protected]>
  • Loading branch information
Kdecherf committed Aug 5, 2021
1 parent 6a044f8 commit 9a4ff85
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,7 @@ public function apply(Request $request, ParamConverter $configuration)

// Map found user to the route's parameter
$request->attributes->set($configuration->getName(), $user);

return true;
}
}
4 changes: 3 additions & 1 deletion src/Wallabag/UserBundle/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,13 +373,15 @@ public function getClients()
/**
* 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;
}

/**
Expand Down

0 comments on commit 9a4ff85

Please sign in to comment.