Skip to content

Query::assembleSelect(): Apply orderBy before joining the relations #19

Query::assembleSelect(): Apply orderBy before joining the relations

Query::assembleSelect(): Apply orderBy before joining the relations #19

Triggered via pull request January 23, 2025 07:09
Status Success
Total duration 52s
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/Behavior/MillisecondTimestamp.php#L19
Binary operation "/" between mixed and 1000.0 results in an error.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/ColumnDefinition.php#L75
Parameter #1 $label of method ipl\Orm\ColumnDefinition::setLabel() expects string|null, mixed given.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Common/PropertiesWithDefaults.php (in context of class ipl/Orm/Model)#L17
Parameter #1 $key of method ipl\Orm\Model::setProperty() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Common/PropertiesWithDefaults.php (in context of class ipl/Orm/Model)#L20
Parameter #1 $key of method ipl\Orm\Model::parentGetProperty() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Common/SortUtil.php#L22
Parameter #1 $sort of static method ipl\Orm\Common\SortUtil::splitColumnAndDirection() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Cannot use array destructuring on array\<int, string\>\|false\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#1 \$path of method ipl\\Orm\\Resolver\:\:resolveRelation\(\) expects string, int\|string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#2 \$targetPath of method ipl\\Orm\\Query\:\:createSubQuery\(\) expects string, int\|string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#2 \$value of static method ipl\\Stdlib\\Filter\:\:equal\(\) expects array\|bool\|float\|int\|string, mixed given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest: src/Compat/FilterProcessor.php#L57
Parameter #1 $array of function array_shift expects array, mixed given.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Behavior/MillisecondTimestamp.php#L19
Binary operation "/" between mixed and 1000.0 results in an error.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/ColumnDefinition.php#L75
Parameter #1 $label of method ipl\Orm\ColumnDefinition::setLabel() expects string|null, mixed given.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Common/PropertiesWithDefaults.php (in context of class ipl/Orm/Model)#L17
Parameter #1 $key of method ipl\Orm\Model::setProperty() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Common/PropertiesWithDefaults.php (in context of class ipl/Orm/Model)#L20
Parameter #1 $key of method ipl\Orm\Model::parentGetProperty() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Common/SortUtil.php#L22
Parameter #1 $sort of static method ipl\Orm\Common\SortUtil::splitColumnAndDirection() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Cannot use array destructuring on array\<int, string\>\|false\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#1 \$path of method ipl\\Orm\\Resolver\:\:resolveRelation\(\) expects string, int\|string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#2 \$targetPath of method ipl\\Orm\\Query\:\:createSubQuery\(\) expects string, int\|string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#2 \$value of static method ipl\\Stdlib\\Filter\:\:equal\(\) expects array\|bool\|float\|int\|string, mixed given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest: src/Compat/FilterProcessor.php#L57
Parameter #1 $array of function array_shift expects array, mixed given.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Behavior/Binary.php#L1
Ignored error pattern #^Parameter \#1 \$string of function bin2hex expects string, mixed given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Behavior/Binary.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Behavior/Binary.php#L65
Parameter #1 $data of function bin2hex expects string, mixed given.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Behavior/MillisecondTimestamp.php#L19
Binary operation "/" between mixed and 1000.0 results in an error.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/ColumnDefinition.php#L75
Parameter #1 $label of method ipl\Orm\ColumnDefinition::setLabel() expects string|null, mixed given.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Common/PropertiesWithDefaults.php (in context of class ipl/Orm/Model)#L17
Parameter #1 $key of method ipl\Orm\Model::setProperty() expects string, mixed given.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Common/PropertiesWithDefaults.php (in context of class ipl/Orm/Model)#L20
Parameter #1 $key of method ipl\Orm\Model::parentGetProperty() expects string, mixed given.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Common/SortUtil.php#L22
Parameter #1 $sort of static method ipl\Orm\Common\SortUtil::splitColumnAndDirection() expects string, mixed given.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Cannot use array destructuring on array\<int, string\>\|false\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#1 \$path of method ipl\\Orm\\Resolver\:\:resolveRelation\(\) expects string, int\|string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#2 \$targetPath of method ipl\\Orm\\Query\:\:createSubQuery\(\) expects string, int\|string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Behavior/Binary.php#L1
Ignored error pattern #^Parameter \#1 \$string of function bin2hex expects string, mixed given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Behavior/Binary.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Behavior/Binary.php#L65
Parameter #1 $data of function bin2hex expects string, mixed given.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#1 \$path of method ipl\\Orm\\Resolver\:\:resolveRelation\(\) expects string, int\|string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#2 \$targetPath of method ipl\\Orm\\Query\:\:createSubQuery\(\) expects string, int\|string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Hydrator.php#L76
Parameter #2 $columnToPropertyMap of method ipl\Orm\Hydrator::updateColumnToTargetMap() expects array<string, string>, array|false given.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Query.php#L1
Ignored error pattern #^Parameter \#1 \$object of method SplObjectStorage\<object,mixed\>\:\:attach\(\) expects object, mixed given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Query.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Query.php#L1
Ignored error pattern #^Parameter \#1 \$object of method SplObjectStorage\<object,mixed\>\:\:contains\(\) expects object, mixed given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Query.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Query.php#L1
Ignored error pattern #^Parameter \#1 \$objectOrClass of class ReflectionClass constructor expects class\-string\<T of object\>\|T of object, string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Query.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Query.php#L138
Parameter #1 $argument of class ReflectionClass constructor expects class-string<T of object>|T of object, string given.
phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest: src/Query.php#L747
Parameter #1 $obj of method SplObjectStorage<object,mixed>::contains() expects object, mixed given.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Behavior/Binary.php#L1
Ignored error pattern #^Parameter \#1 \$string of function bin2hex expects string, mixed given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Behavior/Binary.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Behavior/Binary.php#L65
Parameter #1 $data of function bin2hex expects string, mixed given.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#1 \$path of method ipl\\Orm\\Resolver\:\:resolveRelation\(\) expects string, int\|string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#2 \$targetPath of method ipl\\Orm\\Query\:\:createSubQuery\(\) expects string, int\|string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Hydrator.php#L76
Parameter #2 $columnToPropertyMap of method ipl\Orm\Hydrator::updateColumnToTargetMap() expects array<string, string>, array|false given.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Query.php#L1
Ignored error pattern #^Parameter \#1 \$object of method SplObjectStorage\<object,mixed\>\:\:attach\(\) expects object, mixed given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Query.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Query.php#L1
Ignored error pattern #^Parameter \#1 \$object of method SplObjectStorage\<object,mixed\>\:\:contains\(\) expects object, mixed given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Query.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Query.php#L1
Ignored error pattern #^Parameter \#1 \$objectOrClass of class ReflectionClass constructor expects class\-string\<T of object\>\|T of object, string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Query.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Query.php#L138
Parameter #1 $argument of class ReflectionClass constructor expects class-string<T of object>|T of object, string given.
phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest: src/Query.php#L747
Parameter #1 $obj of method SplObjectStorage<object,mixed>::contains() expects object, mixed given.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Behavior/MillisecondTimestamp.php#L19
Binary operation "/" between mixed and 1000.0 results in an error.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/ColumnDefinition.php#L75
Parameter #1 $label of method ipl\Orm\ColumnDefinition::setLabel() expects string|null, mixed given.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Common/PropertiesWithDefaults.php (in context of class ipl/Orm/Model)#L17
Parameter #1 $key of method ipl\Orm\Model::setProperty() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Common/PropertiesWithDefaults.php (in context of class ipl/Orm/Model)#L20
Parameter #1 $key of method ipl\Orm\Model::parentGetProperty() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Common/SortUtil.php#L22
Parameter #1 $sort of static method ipl\Orm\Common\SortUtil::splitColumnAndDirection() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Cannot use array destructuring on array\<int, string\>\|false\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#1 \$path of method ipl\\Orm\\Resolver\:\:resolveRelation\(\) expects string, int\|string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#2 \$targetPath of method ipl\\Orm\\Query\:\:createSubQuery\(\) expects string, int\|string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#2 \$value of static method ipl\\Stdlib\\Filter\:\:equal\(\) expects array\|bool\|float\|int\|string, mixed given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest: src/Compat/FilterProcessor.php#L57
Parameter #1 $array of function array_shift expects array, mixed given.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Behavior/MillisecondTimestamp.php#L19
Binary operation "/" between mixed and 1000.0 results in an error.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/ColumnDefinition.php#L75
Parameter #1 $label of method ipl\Orm\ColumnDefinition::setLabel() expects string|null, mixed given.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Common/PropertiesWithDefaults.php (in context of class ipl/Orm/Model)#L17
Parameter #1 $key of method ipl\Orm\Model::setProperty() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Common/PropertiesWithDefaults.php (in context of class ipl/Orm/Model)#L20
Parameter #1 $key of method ipl\Orm\Model::parentGetProperty() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Common/SortUtil.php#L22
Parameter #1 $sort of static method ipl\Orm\Common\SortUtil::splitColumnAndDirection() expects string, mixed given.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Cannot use array destructuring on array\<int, string\>\|false\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#1 \$path of method ipl\\Orm\\Resolver\:\:resolveRelation\(\) expects string, int\|string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#2 \$targetPath of method ipl\\Orm\\Query\:\:createSubQuery\(\) expects string, int\|string given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Compat/FilterProcessor.php#L1
Ignored error pattern #^Parameter \#2 \$value of static method ipl\\Stdlib\\Filter\:\:equal\(\) expects array\|bool\|float\|int\|string, mixed given\.$# in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest: src/Compat/FilterProcessor.php#L57
Parameter #1 $array of function array_shift expects array, mixed given.
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.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 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 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.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