Skip to content

Commit

Permalink
chore: phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed May 5, 2023
1 parent 2121d15 commit d0cf733
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Doctrine/Orm/AbstractPaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(DoctrinePaginator $paginator)
{
$query = $paginator->getQuery();

if (null === ($firstResult = $query->getFirstResult()) || null === $maxResults = $query->getMaxResults()) {
if (null === ($firstResult = $query->getFirstResult()) || null === $maxResults = $query->getMaxResults()) { // @phpstan-ignore-line
throw new InvalidArgumentException(sprintf('"%1$s::setFirstResult()" or/and "%1$s::setMaxResults()" was/were not applied to the query.', Query::class));
}

Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/Orm/Extension/EagerLoadingExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private function addSelect(QueryBuilder $queryBuilder, string $entity, string $a
}

// It's an embedded property, select relevant subfields
foreach ($this->propertyNameCollectionFactory->create($targetClassMetadata->embeddedClasses[$property]['class']) as $embeddedProperty) {
foreach ($this->propertyNameCollectionFactory->create($targetClassMetadata->embeddedClasses[$property]['class']) as $embeddedProperty) { // @phpstan-ignore-line
$isFetchable = $propertyMetadata->isFetchable();
$propertyMetadata = $this->propertyMetadataFactory->create($entity, $property, $propertyMetadataOptions);
$propertyName = "$property.$embeddedProperty";
Expand Down

0 comments on commit d0cf733

Please sign in to comment.