Skip to content

Commit 00086a3

Browse files
committed
Adjusted PHPStan
1 parent 1df7cfa commit 00086a3

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

code_samples/user_management/oauth_google/src/OAuth/GoogleResourceOwnerMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(
5454
protected function loadUser(
5555
ResourceOwnerInterface $resourceOwner,
5656
UserProviderInterface $userProvider
57-
): ?UserInterface {
57+
): UserInterface {
5858
return $userProvider->loadUserByIdentifier($this->getUsername($resourceOwner));
5959
}
6060

@@ -64,7 +64,7 @@ protected function loadUser(
6464
protected function createUser(
6565
ResourceOwnerInterface $resourceOwner,
6666
UserProviderInterface $userProvider
67-
): ?UserInterface {
67+
): UserInterface {
6868
$userCreateStruct = $this->oauthUserService->newOAuth2UserCreateStruct(
6969
$this->getUsername($resourceOwner),
7070
$resourceOwner->getEmail(),

phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -738,12 +738,6 @@ parameters:
738738
count: 1
739739
path: code_samples/tutorials/page_tutorial_starting_point/src/QueryType/MenuQueryType.php
740740

741-
-
742-
message: '#^Call to an undefined method Symfony\\Component\\Security\\Core\\User\\UserProviderInterface\<Symfony\\Component\\Security\\Core\\User\\UserInterface\>\:\:loadUserByUsername\(\)\.$#'
743-
identifier: method.notFound
744-
count: 2
745-
path: code_samples/user_management/oauth_google/src/OAuth/GoogleResourceOwnerMapper.php
746-
747741
-
748742
message: '#^Parameter \#2 \$email of method Ibexa\\Contracts\\OAuth2Client\\Repository\\OAuth2UserService\:\:newOAuth2UserCreateStruct\(\) expects string, string\|null given\.$#'
749743
identifier: argument.type

0 commit comments

Comments
 (0)