Issue Task Resolved

#110821Remove redundant array check from Extbase CollectionValidator

Wouter Wolters 09/28/26, 20:09 updated 09/30/26, 06:25

Description

`CollectionValidator::validate()` checks `is_array($value)` in a condition that already requires `$value` to be an object. The array check can never affect the result and has a matching PHPStan baseline entry.

Remove the redundant check and baseline entry. Validation behavior remains unchanged. The existing `CollectionValidatorTest` functional tests and PHPStan pass with the change.

Reviews 2

History 14

  1. Wouter Wolters commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-30T06:25:09+00:00" > 09/30/26, 06:25 </span>

    Applied in changeset commit:1cab0107f1101d547863cb7f129976514ceccb33.