Skip to content

fix: Entity::normalizeValue() must handle UnitEnum before toArray() #14447

fix: Entity::normalizeValue() must handle UnitEnum before toArray()

fix: Entity::normalizeValue() must handle UnitEnum before toArray() #14447

Triggered via pull request May 11, 2026 20:15
Status Failure
Total duration 1m 6s
Artifacts

test-phpstan.yml

on: pull_request
PHP Static Analysis
1m 1s
PHP Static Analysis
Fit to window
Zoom out
Zoom in

Annotations

7 errors
PHP Static Analysis
Process completed with exit code 1.
PHP Static Analysis: tests/system/Entity/EntityTest.php#L2395
Cannot call method modify() on array<int|string, mixed>|bool|float|int|object|string.
PHP Static Analysis: tests/system/Entity/EntityTest.php#L2388
Method DateTime@anonymous/tests/system/Entity/EntityTest.php:2387::toArray() return type has no value type specified in iterable type array.
PHP Static Analysis: tests/system/Entity/EntityTest.php#L2374
Cannot call method exchangeArray() on array<int|string, mixed>|bool|float|int|object|string.
PHP Static Analysis: tests/system/Entity/EntityTest.php#L2367
Method ArrayObject@anonymous/tests/system/Entity/EntityTest.php:2366::toArray() return type has no value type specified in iterable type array.
PHP Static Analysis: tests/system/Entity/EntityTest.php#L2050
Cannot call method setValue() on array<int|string, mixed>|bool|float|int|object|string.
PHP Static Analysis: tests/system/Entity/EntityTest.php#L2043
Method JsonSerializable@anonymous/tests/system/Entity/EntityTest.php:2028::toArray() return type has no value type specified in iterable type array.