Skip to content

Commit

Permalink
fix: phpstan review
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoireHebert committed Jul 17, 2023
1 parent 702b505 commit 6c56f0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Metadata/ApiProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ final class ApiProperty
* @param string[] $types the RDF types of this property
* @param string[] $iris
* @param Type[] $builtinTypes
* @param bool[] $iriOnly whether to return the subRessource collection IRI instead of an iterable of IRI
* @param bool|null $iriOnly whether to return the subRessource collection IRI instead of an iterable of IRI
*/
public function __construct(
private ?string $description = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

use ApiPlatform\Metadata\ApiProperty;
use ApiPlatform\Metadata\Get;
use ApiPlatform\Metadata\GetCollection;
use ApiPlatform\Metadata\Post;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
Expand All @@ -39,7 +40,7 @@ class PropertyCollectionIriOnly
private Collection $propertyCollectionIriOnlyRelation;

/**
* @var iterable<int, PropertyCollectionIriOnlyRelation> $iterableIri
* @var array<int, PropertyCollectionIriOnlyRelation> $iterableIri
*/
#[ApiProperty(iriOnly: true)]
#[Groups('read')]
Expand Down

0 comments on commit 6c56f0d

Please sign in to comment.