Skip to content

Properly apply given default sort #65

Properly apply given default sort

Properly apply given default sort #65

Triggered via pull request January 20, 2025 10:48
Status Success
Total duration 49s
Artifacts

phpstan.yml

on: pull_request
Matrix: phpstan / phpstan
Fit to window
Zoom out
Zoom in

Annotations

70 errors and 7 warnings
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Common/BaseItemList.php#L79
Method ipl\Web\Common\BaseItemList::createListItem() should return ipl\Web\Common\BaseListItem|ipl\Web\Common\BaseTableRowItem but returns object.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Common/BaseItemList.php#L113
Parameter #1 $data of method ipl\Web\Common\BaseItemList::createListItem() expects object, mixed given.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Common/CsrfCounterMeasure.php#L9
Trait ipl\Web\Common\CsrfCounterMeasure is used zero times and is not analysed.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SearchBar)#L23
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SearchBar).
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SearchBar)#L23
Parameter #2 $name of method ipl\Html\Form::createElement() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SearchBar)#L50
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SearchBar).
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SortControl)#L23
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SortControl).
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Common/BaseItemList.php#L79
Method ipl\Web\Common\BaseItemList::createListItem() should return ipl\Web\Common\BaseListItem|ipl\Web\Common\BaseTableRowItem but returns object.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SortControl)#L23
Parameter #2 $name of method ipl\Html\Form::createElement() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Common/BaseItemList.php#L113
Parameter #1 $data of method ipl\Web\Common\BaseItemList::createListItem() expects object, mixed given.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SortControl)#L50
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SortControl).
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Common/CsrfCounterMeasure.php#L9
Trait ipl\Web\Common\CsrfCounterMeasure is used zero times and is not analysed.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SearchBar)#L23
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SearchBar).
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SearchBar)#L23
Parameter #2 $name of method ipl\Html\Form::createElement() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SearchBar)#L50
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SearchBar).
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SortControl)#L23
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SortControl).
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SortControl)#L23
Parameter #2 $name of method ipl\Html\Form::createElement() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SortControl)#L50
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SortControl).
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Common/BaseItemList.php#L79
Method ipl\Web\Common\BaseItemList::createListItem() should return ipl\Web\Common\BaseListItem|ipl\Web\Common\BaseTableRowItem but returns object.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Common/BaseItemList.php#L113
Parameter #1 $data of method ipl\Web\Common\BaseItemList::createListItem() expects object, mixed given.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Common/CsrfCounterMeasure.php#L9
Trait ipl\Web\Common\CsrfCounterMeasure is used zero times and is not analysed.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SearchBar)#L23
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SearchBar).
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SearchBar)#L23
Parameter #2 $name of method ipl\Html\Form::createElement() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SearchBar)#L50
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SearchBar).
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SortControl)#L23
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SortControl).
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SortControl)#L23
Parameter #2 $name of method ipl\Html\Form::createElement() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SortControl)#L50
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SortControl).
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Common/BaseItemList.php#L79
Method ipl\Web\Common\BaseItemList::createListItem() should return ipl\Web\Common\BaseListItem|ipl\Web\Common\BaseTableRowItem but returns object.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Common/BaseItemList.php#L113
Parameter #1 $data of method ipl\Web\Common\BaseItemList::createListItem() expects object, mixed given.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Compat/CompatController.php#L305
Parameter #1 $sort of static method ipl\Orm\Common\SortUtil::normalizeSortSpec() expects array|string, mixed given.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Control/SearchEditor.php#L124
Cannot access offset 'filter' on iterable<string, mixed>.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Control/SortControl.php#L1
Ignored error pattern #^Method ipl\\Web\\Control\\SortControl\:\:apply\(\) has parameter \$defaultSort with no type specified\.$# in path /home/runner/work/ipl-web/ipl-web/src/Control/SortControl.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Control/SortControl.php#L1
Ignored error pattern #^PHPDoc tag @param has invalid value \(\?array\|string \$defaultSort\)\: Unexpected token "\|", expected variable at offset 111$# in path /home/runner/work/ipl-web/ipl-web/src/Control/SortControl.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Control/SortControl.php#L1
Ignored error pattern #^Parameter \#1 \$str of function strtolower expects string, mixed given\.$# in path /home/runner/work/ipl-web/ipl-web/src/Control/SortControl.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Control/SortControl.php#L1
Ignored error pattern #^Part \$column \(mixed\) of encapsed string cannot be cast to string\.$# in path /home/runner/work/ipl-web/ipl-web/src/Control/SortControl.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Common/BaseItemList.php#L79
Method ipl\Web\Common\BaseItemList::createListItem() should return ipl\Web\Common\BaseListItem|ipl\Web\Common\BaseTableRowItem but returns object.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Common/BaseItemList.php#L113
Parameter #1 $data of method ipl\Web\Common\BaseItemList::createListItem() expects object, mixed given.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Compat/CompatController.php#L305
Parameter #1 $sort of static method ipl\Orm\Common\SortUtil::normalizeSortSpec() expects array|string, mixed given.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Control/SearchEditor.php#L124
Cannot access offset 'filter' on iterable<string, mixed>.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Control/SortControl.php#L1
Ignored error pattern #^Method ipl\\Web\\Control\\SortControl\:\:apply\(\) has parameter \$defaultSort with no type specified\.$# in path /home/runner/work/ipl-web/ipl-web/src/Control/SortControl.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Control/SortControl.php#L1
Ignored error pattern #^PHPDoc tag @param has invalid value \(\?array\|string \$defaultSort\)\: Unexpected token "\|", expected variable at offset 111$# in path /home/runner/work/ipl-web/ipl-web/src/Control/SortControl.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Control/SortControl.php#L1
Ignored error pattern #^Parameter \#1 \$str of function strtolower expects string, mixed given\.$# in path /home/runner/work/ipl-web/ipl-web/src/Control/SortControl.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Control/SortControl.php#L1
Ignored error pattern #^Part \$column \(mixed\) of encapsed string cannot be cast to string\.$# in path /home/runner/work/ipl-web/ipl-web/src/Control/SortControl.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Common/BaseItemList.php#L79
Method ipl\Web\Common\BaseItemList::createListItem() should return ipl\Web\Common\BaseListItem|ipl\Web\Common\BaseTableRowItem but returns object.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Common/BaseItemList.php#L113
Parameter #1 $data of method ipl\Web\Common\BaseItemList::createListItem() expects object, mixed given.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Common/CsrfCounterMeasure.php#L9
Trait ipl\Web\Common\CsrfCounterMeasure is used zero times and is not analysed.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SearchBar)#L23
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SearchBar).
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SearchBar)#L23
Parameter #2 $name of method ipl\Html\Form::createElement() expects string, mixed given.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SearchBar)#L50
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SearchBar).
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SortControl)#L23
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SortControl).
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SortControl)#L23
Parameter #2 $name of method ipl\Html\Form::createElement() expects string, mixed given.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SortControl)#L50
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SortControl).
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Common/BaseItemList.php#L79
Method ipl\Web\Common\BaseItemList::createListItem() should return ipl\Web\Common\BaseListItem|ipl\Web\Common\BaseTableRowItem but returns object.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Common/BaseItemList.php#L113
Parameter #1 $data of method ipl\Web\Common\BaseItemList::createListItem() expects object, mixed given.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Common/CsrfCounterMeasure.php#L9
Trait ipl\Web\Common\CsrfCounterMeasure is used zero times and is not analysed.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SearchBar)#L23
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SearchBar).
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SearchBar)#L23
Parameter #2 $name of method ipl\Html\Form::createElement() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SearchBar)#L50
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SearchBar).
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SortControl)#L23
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SortControl).
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SortControl)#L23
Parameter #2 $name of method ipl\Html\Form::createElement() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Common/FormUid.php (in context of class ipl/Web/Control/SortControl)#L50
PHPDoc tag @var with type ipl\Html\Form is not subtype of native type $this(ipl\Web\Control\SortControl).
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636