src/Validators/ObjectValidators/AdditionalPropertiesValidator.php
private function removePropertiesFromSubject(array $subject, array $schema): array
    {
        if (isset($schema['properties']) && \is_array($schema['properties'])) {
            $propertyNames = \array_keys($schema['properties']);
            foreach ($propertyNames as $propertyName) {
                if (isset($subject[$propertyName])) {
                    unset($subject[$propertyName]);
                }
            }
        }
        return $subject;
    }
private function removePropertiesFromSubject(array $subject, array $schema): array
    {
        if (isset($schema['properties']) && \is_array($schema['properties'])) {
            $propertyNames = \array_keys($schema['properties']);
            foreach ($propertyNames as $propertyName) {
                if (isset($subject[$propertyName])) {
                    unset($subject[$propertyName]);
                }
            }
        }
        return $subject;
    }
private function removePropertiesFromSubject ( array $ subject , array $ schema ) : array { if ( isset ( $ schema [ 'properties' ] ) && \ is_array ( $ schema [ 'properties' ] ) ) { $ propertyNames = \ array_keys ( $ schema [ 'properties' ] ) ; foreach ( $ propertyNames as $ propertyName ) { if ( isset ( $ subject [ $ propertyName ] ) ) { unset ( $ subject [ $ propertyName ] ) ; } } } return $ subject ; }
Removes properties defined in 'properties' from subject

@param array $subject
@param array $schema
@return array
Removes properties defined in properties from subject