Skip to content

Commit

Permalink
fix phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Feb 13, 2024
1 parent 1de3079 commit 76e3341
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/DependencyInjection/MembersExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function prepend(ContainerBuilder $container): void
$configs = $container->getExtensionConfig($this->getAlias());
$config = $this->processConfiguration($this->getConfiguration([], $container), $configs);

/** @phpstan-ignore-next-line */
if (!$container->hasParameter('members.firewall_name')) {
$container->setParameter('members.firewall_name', 'members_fe');
}
Expand Down
2 changes: 2 additions & 0 deletions src/Security/OAuth/AccountConnectorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
interface AccountConnectorInterface
{
public function connectToSsoIdentity(UserInterface $user, OAuthResponseInterface $oAuthResponse): SsoIdentityInterface;

public function refreshSsoIdentityUser(UserInterface $user, OAuthResponseInterface $oAuthResponse): void;
}
3 changes: 2 additions & 1 deletion src/Service/ResourceMappingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use MembersBundle\Exception\EntityNotRefreshedException;
use MembersBundle\MembersEvents;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface as ComponentEventDispatcherInterface;

class ResourceMappingService
{
Expand Down Expand Up @@ -36,7 +37,7 @@ public function mapResourceData(UserInterface $user, ResourceOwnerInterface $res
}

$eventName = constant($eventPath);
if ($this->eventDispatcher instanceof EventDispatcherInterface && $this->eventDispatcher->hasListeners($eventName) === false) {
if ($this->eventDispatcher instanceof ComponentEventDispatcherInterface && $this->eventDispatcher->hasListeners($eventName) === false) {
$this->addDefaults($user, $resourceOwner, $type);

return;
Expand Down

0 comments on commit 76e3341

Please sign in to comment.