Replies: 1 comment 1 reply
-
DataCollectionOf only has If you need this for autocompletion, you could use phpdoc: /**
* @param DataCollection<array-key, ProductDto> $data
*/
public function saveWithRelations(DataCollection $data)
{
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does anyone know how to solve this PHPStorm warning?:
Attribute cannot be applied to a parameter because it does not contain the 'Attribute::TARGET_PARAMETER' flag
Example usage:
public function saveWithRelations(#[DataCollectionOf(ProductDto::class)] DataCollection $data): Collection
Beta Was this translation helpful? Give feedback.
All reactions