mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[BUGFIX] remove redundant object from PHPDoc union types (#18904)
| Q | A |-----------------|----- | Branch? | 2.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | fixes https://github.com/Sylius/Sylius/issues/18878 | License | MIT <!-- - Bug fixes must be submitted against the 1.14 or 2.1 branch - Features and deprecations must be submitted against the 2.2 branch - Make sure that the correct base branch is set To be sure you are not breaking any Backward Compatibilities, check the documentation: https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html -->
This commit is contained in:
commit
1c4d73b4a5
2 changed files with 3 additions and 3 deletions
|
|
@ -93,7 +93,7 @@ class UserProvider extends BaseUserProvider implements AccountConnectorInterface
|
|||
*/
|
||||
private function createUserByOAuthUserResponse(UserResponseInterface $response): SyliusUserInterface
|
||||
{
|
||||
/** @var SyliusUserInterface|object $user */
|
||||
/** @var SyliusUserInterface $user */
|
||||
$user = $this->userFactory->createNew();
|
||||
Assert::isInstanceOf($user, SyliusUserInterface::class);
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class DoctrineStorage extends BaseDoctrineStorage
|
|||
{
|
||||
protected function doFind($id): ?object
|
||||
{
|
||||
/** @var object|GatewayConfigInterface|null $resource */
|
||||
/** @var object|null $resource */
|
||||
$resource = parent::doFind($id);
|
||||
|
||||
if (null === $resource) {
|
||||
|
|
@ -37,7 +37,7 @@ class DoctrineStorage extends BaseDoctrineStorage
|
|||
/** @param array<mixed> $criteria */
|
||||
public function findBy(array $criteria): array
|
||||
{
|
||||
/** @var object[]|GatewayConfigInterface[] $resources */
|
||||
/** @var array<object> $resources */
|
||||
$resources = parent::findBy($criteria);
|
||||
|
||||
return array_filter($resources, static function ($resource) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue