src/Validators/ArrayValidators/AdditionalItemsValidator.php
private function validateAdditionalItemsSchemaObject(array $subject, array $schema): bool
    {
        for ($i = 0; $i < count($subject); $i++) {
            $nodeValidator = new NodeValidator($schema['additionalItems'], $this->rootSchema);
            if (!$nodeValidator->validate($subject[$i])) {
                return false;
            }
        }
        return true;
    }
private function validateAdditionalItemsSchemaObject(array $subject, array $schema): bool
    {
        for ($i = 0; $i < count($subject); $i++) {
            $nodeValidator = new NodeValidator($schema['additionalItems'], $this->rootSchema);
            if (!$nodeValidator->validate($subject[$i])) {
                return false;
            }
        }
        return true;
    }
private function validateAdditionalItemsSchemaObject ( array $ subject , array $ schema ) : bool { for ( $ i = 0 ; $ i < count ( $ subject ) ; $ i ++ ) { $ nodeValidator = new NodeValidator ( $ schema [ 'additionalItems' ] , $ this -> rootSchema ) ; if ( ! $ nodeValidator -> validate ( $ subject [ $ i ] ) ) { return false ; } } return true ; }
Validate against additionalItems for object-type schema

@param array $subject
@param array $schema
@return bool
Validate against additionalItems for object - type schema