Skip to content

Commit

Permalink
Resolved LessSpecificImplementedReturnType from psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson committed Jan 9, 2024
1 parent dd1fd24 commit 6feddd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Form/Element/ObjectMultiCheckbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function setValue($value)
/**
* {@inheritDoc}
*
* @return array<array-key,mixed>
* @return array<int<0, max>|string, array{attributes?: array<string, null|scalar>, disabled?: bool, label: non-empty-string, label_attributes?: array<string, null|scalar>, selected?: bool, value: non-empty-string}|string>

Check failure on line 57 in src/Form/Element/ObjectMultiCheckbox.php

View workflow job for this annotation

GitHub Actions / Coding Standards / Coding Standards (8.1)

Null type hint should be on last position in "null|scalar".

Check failure on line 57 in src/Form/Element/ObjectMultiCheckbox.php

View workflow job for this annotation

GitHub Actions / Coding Standards / Coding Standards (8.1)

Null type hint should be on last position in "null|scalar".
*/
public function getValueOptions(): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Element/ObjectRadio.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function setValue($value)
/**
* {@inheritDoc}
*
* @return array<array-key,mixed>
* @return array<int<0, max>|string, array{attributes?: array<string, null|scalar>, disabled?: bool, label: non-empty-string, label_attributes?: array<string, null|scalar>, selected?: bool, value: non-empty-string}|string>

Check failure on line 44 in src/Form/Element/ObjectRadio.php

View workflow job for this annotation

GitHub Actions / Coding Standards / Coding Standards (8.1)

Null type hint should be on last position in "null|scalar".

Check failure on line 44 in src/Form/Element/ObjectRadio.php

View workflow job for this annotation

GitHub Actions / Coding Standards / Coding Standards (8.1)

Null type hint should be on last position in "null|scalar".
*/
public function getValueOptions(): array
{
Expand Down

0 comments on commit 6feddd5

Please sign in to comment.