Skip to content

Add strict type declarations and modernize codebase #518

Add strict type declarations and modernize codebase

Add strict type declarations and modernize codebase #518

Triggered via pull request March 5, 2026 10:27
Status Success
Total duration 51s
Artifacts

php.yml

on: pull_request
Matrix: PHP / Lint
Matrix: PHP / Static analysis
Matrix: PHP / Test
Fit to window
Zoom out
Zoom in

Annotations

40 errors
PHP / Static analysis (8.5) / PHPStan 8.5: src/Compat/FilterProcessor.php#L0
Ignored error pattern #^Method ipl\\Orm\\Compat\\FilterProcessor\:\:requireAndResolveFilterColumns\(\) has parameter \$forceOptimization with no type specified\.$# (missingType.parameter) in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
PHP / Static analysis (8.5) / PHPStan 8.5: src/Compat/FilterProcessor.php#L0
Ignored error pattern #^Method ipl\\Orm\\Compat\\FilterProcessor\:\:requireAndResolveFilterColumns\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
PHP / Static analysis (8.5) / PHPStan 8.5: src/Compat/FilterProcessor.php#L0
Ignored error pattern #^Method ipl\\Orm\\Compat\\FilterProcessor\:\:apply\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
PHP / Static analysis (8.5) / PHPStan 8.5: src/Common/SortUtil.php#L22
Parameter #1 $sort of static method ipl\Orm\Common\SortUtil::splitColumnAndDirection() expects string, mixed given.
PHP / Static analysis (8.5) / PHPStan 8.5: src/ColumnDefinition.php#L76
Parameter #1 $label of method ipl\Orm\ColumnDefinition::setLabel() expects string|null, mixed given.
PHP / Static analysis (8.5) / PHPStan 8.5: src/Behaviors.php#L0
Ignored error pattern #^Method ipl\\Orm\\Behaviors\:\:retrieve\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Behaviors.php was not matched in reported errors.
PHP / Static analysis (8.4) / PHPStan 8.4: src/Compat/FilterProcessor.php#L0
Ignored error pattern #^Method ipl\\Orm\\Compat\\FilterProcessor\:\:requireAndResolveFilterColumns\(\) has parameter \$forceOptimization with no type specified\.$# (missingType.parameter) in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
PHP / Static analysis (8.5) / PHPStan 8.5: src/Behaviors.php#L0
Ignored error pattern #^Method ipl\\Orm\\Behaviors\:\:persist\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Behaviors.php was not matched in reported errors.
PHP / Static analysis (8.5) / PHPStan 8.5: src/Behaviors.php#L0
Ignored error pattern #^Method ipl\\Orm\\Behaviors\:\:add\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Behaviors.php was not matched in reported errors.
PHP / Static analysis (8.5) / PHPStan 8.5: src/Behavior/MillisecondTimestamp.php#L19
Binary operation "/" between mixed and 1000.0 results in an error.
PHP / Static analysis (8.5) / PHPStan 8.5: src/Behavior/Binary.php#L81
Possibly invalid array key type mixed.
PHP / Static analysis (8.4) / PHPStan 8.4: src/Compat/FilterProcessor.php#L0
Ignored error pattern #^Method ipl\\Orm\\Compat\\FilterProcessor\:\:requireAndResolveFilterColumns\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
PHP / Static analysis (8.4) / PHPStan 8.4: src/Compat/FilterProcessor.php#L0
Ignored error pattern #^Method ipl\\Orm\\Compat\\FilterProcessor\:\:apply\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
PHP / Static analysis (8.4) / PHPStan 8.4: src/Common/SortUtil.php#L22
Parameter #1 $sort of static method ipl\Orm\Common\SortUtil::splitColumnAndDirection() expects string, mixed given.
PHP / Static analysis (8.4) / PHPStan 8.4: src/ColumnDefinition.php#L76
Parameter #1 $label of method ipl\Orm\ColumnDefinition::setLabel() expects string|null, mixed given.
PHP / Static analysis (8.4) / PHPStan 8.4: src/Behaviors.php#L0
Ignored error pattern #^Method ipl\\Orm\\Behaviors\:\:retrieve\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Behaviors.php was not matched in reported errors.
PHP / Static analysis (8.4) / PHPStan 8.4: src/Behaviors.php#L0
Ignored error pattern #^Method ipl\\Orm\\Behaviors\:\:persist\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Behaviors.php was not matched in reported errors.
PHP / Static analysis (8.4) / PHPStan 8.4: src/Behaviors.php#L0
Ignored error pattern #^Method ipl\\Orm\\Behaviors\:\:add\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Behaviors.php was not matched in reported errors.
PHP / Static analysis (8.4) / PHPStan 8.4: src/Behavior/MillisecondTimestamp.php#L19
Binary operation "/" between mixed and 1000.0 results in an error.
PHP / Static analysis (8.4) / PHPStan 8.4: src/Behavior/Binary.php#L81
Possibly invalid array key type mixed.
PHP / Static analysis (8.3) / PHPStan 8.3: src/Compat/FilterProcessor.php#L0
Ignored error pattern #^Method ipl\\Orm\\Compat\\FilterProcessor\:\:requireAndResolveFilterColumns\(\) has parameter \$forceOptimization with no type specified\.$# (missingType.parameter) in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
PHP / Static analysis (8.3) / PHPStan 8.3: src/Compat/FilterProcessor.php#L0
Ignored error pattern #^Method ipl\\Orm\\Compat\\FilterProcessor\:\:requireAndResolveFilterColumns\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
PHP / Static analysis (8.3) / PHPStan 8.3: src/Compat/FilterProcessor.php#L0
Ignored error pattern #^Method ipl\\Orm\\Compat\\FilterProcessor\:\:apply\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
PHP / Static analysis (8.3) / PHPStan 8.3: src/Common/SortUtil.php#L22
Parameter #1 $sort of static method ipl\Orm\Common\SortUtil::splitColumnAndDirection() expects string, mixed given.
PHP / Static analysis (8.3) / PHPStan 8.3: src/ColumnDefinition.php#L76
Parameter #1 $label of method ipl\Orm\ColumnDefinition::setLabel() expects string|null, mixed given.
PHP / Static analysis (8.3) / PHPStan 8.3: src/Behaviors.php#L0
Ignored error pattern #^Method ipl\\Orm\\Behaviors\:\:retrieve\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Behaviors.php was not matched in reported errors.
PHP / Static analysis (8.3) / PHPStan 8.3: src/Behaviors.php#L0
Ignored error pattern #^Method ipl\\Orm\\Behaviors\:\:persist\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Behaviors.php was not matched in reported errors.
PHP / Static analysis (8.3) / PHPStan 8.3: src/Behaviors.php#L0
Ignored error pattern #^Method ipl\\Orm\\Behaviors\:\:add\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Behaviors.php was not matched in reported errors.
PHP / Static analysis (8.3) / PHPStan 8.3: src/Behavior/MillisecondTimestamp.php#L19
Binary operation "/" between mixed and 1000.0 results in an error.
PHP / Static analysis (8.3) / PHPStan 8.3: src/Behavior/Binary.php#L81
Possibly invalid array key type mixed.
PHP / Static analysis (8.2) / PHPStan 8.2: src/Compat/FilterProcessor.php#L0
Ignored error pattern #^Method ipl\\Orm\\Compat\\FilterProcessor\:\:requireAndResolveFilterColumns\(\) has parameter \$forceOptimization with no type specified\.$# (missingType.parameter) in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
PHP / Static analysis (8.2) / PHPStan 8.2: src/Compat/FilterProcessor.php#L0
Ignored error pattern #^Method ipl\\Orm\\Compat\\FilterProcessor\:\:requireAndResolveFilterColumns\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
PHP / Static analysis (8.2) / PHPStan 8.2: src/Compat/FilterProcessor.php#L0
Ignored error pattern #^Method ipl\\Orm\\Compat\\FilterProcessor\:\:apply\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Compat/FilterProcessor.php was not matched in reported errors.
PHP / Static analysis (8.2) / PHPStan 8.2: src/Common/SortUtil.php#L22
Parameter #1 $sort of static method ipl\Orm\Common\SortUtil::splitColumnAndDirection() expects string, mixed given.
PHP / Static analysis (8.2) / PHPStan 8.2: src/ColumnDefinition.php#L76
Parameter #1 $label of method ipl\Orm\ColumnDefinition::setLabel() expects string|null, mixed given.
PHP / Static analysis (8.2) / PHPStan 8.2: src/Behaviors.php#L0
Ignored error pattern #^Method ipl\\Orm\\Behaviors\:\:retrieve\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Behaviors.php was not matched in reported errors.
PHP / Static analysis (8.2) / PHPStan 8.2: src/Behaviors.php#L0
Ignored error pattern #^Method ipl\\Orm\\Behaviors\:\:persist\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Behaviors.php was not matched in reported errors.
PHP / Static analysis (8.2) / PHPStan 8.2: src/Behaviors.php#L0
Ignored error pattern #^Method ipl\\Orm\\Behaviors\:\:add\(\) has no return type specified\.$# (missingType.return) in path /home/runner/work/ipl-orm/ipl-orm/src/Behaviors.php was not matched in reported errors.
PHP / Static analysis (8.2) / PHPStan 8.2: src/Behavior/MillisecondTimestamp.php#L19
Binary operation "/" between mixed and 1000.0 results in an error.
PHP / Static analysis (8.2) / PHPStan 8.2: src/Behavior/Binary.php#L81
Possibly invalid array key type mixed.