Skip to content

Commit

Permalink
[TASK] Make GravatarProvider compatible with v12
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed May 22, 2023
1 parent 97ecdbf commit c4eea49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Build/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ parameters:
- "#^Call to an undefined method TYPO3Fluid\\\\Fluid\\\\Core\\\\Rendering\\\\RenderingContextInterface\\:\\:getRequest\\(\\)\\.$#"
- "#^Method TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\QueryInterface\\:\\:logicalAnd\\(\\) invoked with 2 parameters, 1 required\\.$#"
- "#^Method TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\QueryInterface\\:\\:logicalOr\\(\\) invoked with 2 parameters, 1 required\\.$#"
- "#^Dynamic call to static method TYPO3\\\\CMS\\\\Core\\\\Http\\\\Client\\\\GuzzleClientFactory\\:\\:getClient\\(\\)\\.$#"

paths:
- %currentWorkingDirectory%/Classes/
Expand Down
2 changes: 1 addition & 1 deletion Classes/AvatarProvider/GravatarProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ final public function __construct()
);
$this->avatarResourceResolver = GeneralUtility::makeInstance(
GravatarResourceResolver::class,
GeneralUtility::makeInstance(GuzzleClientFactory::class)::getClient(),
GeneralUtility::makeInstance(GuzzleClientFactory::class)->getClient(),
GeneralUtility::makeInstance(RequestFactory::class)
);

Expand Down

0 comments on commit c4eea49

Please sign in to comment.