[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:
Kamil Grygierzec 2026-03-10 14:03:56 +01:00 committed by GitHub
commit 1c4d73b4a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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) {