Skip to content

Commit

Permalink
Phpstan tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
elb98rm committed Apr 19, 2021
1 parent 39d297f commit afba18d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Models/DataResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function setType(?string $type): DataResource
}

/**
* @phpstan-return array[]|null
* @phpstan-return array<mixed>|null
* @return array|null
* @see $attributes
*/
Expand All @@ -110,7 +110,7 @@ public function getAttributes(): ?array
}

/**
* @phpstan-param array[]|null $attributes
* @phpstan-param array<mixed>|null $attributes
* @param array|null $attributes
* @return DataResource
* @see $attributes
Expand All @@ -127,7 +127,7 @@ public function setAttributes(?array $attributes): DataResource
* DataResource constructor.
* @param string|null $id
* @param string|null $type
* @phpstan-param array[]|null $attributes
* @phpstan-param array<mixed>|null $attributes
* @param array|null $attributes
*/
public function __construct(
Expand All @@ -142,7 +142,7 @@ public function __construct(
}

/**
* @phpstan-return array{id:string|null,type:string|null,attributes:array[]|null}
* @phpstan-return array{id:string|null,type:string|null,attributes:array<mixed>|null}
* @return array
*/
public function toArray(): array
Expand Down

0 comments on commit afba18d

Please sign in to comment.