src/Serializer/Filter/PropertyFilter.php
private function formatWhitelist(array $whitelist): array
    {
        if (array_values($whitelist) === $whitelist) {
            return $whitelist;
        }
        foreach ($whitelist as $name => $value) {
            if (null === $value) {
                unset($whitelist[$name]);
                $whitelist[] = $name;
            }
        }

        return $whitelist;
    }
private function formatWhitelist(array $whitelist): array
    {
        if (array_values($whitelist) === $whitelist) {
            return $whitelist;
        }
        foreach ($whitelist as $name => $value) {
            if (null === $value) {
                unset($whitelist[$name]);
                $whitelist[] = $name;
            }
        }

        return $whitelist;
    }
private function formatWhitelist ( array $ whitelist ) : array { if ( array_values ( $ whitelist ) === $ whitelist ) { return $ whitelist ; } foreach ( $ whitelist as $ name => $ value ) { if ( null === $ value ) { unset ( $ whitelist [ $ name ] ) ; $ whitelist [ ] = $ name ; } } return $ whitelist ; }
Generate an array of whitelist properties to match the format that properties
will have in the request.

@param array $whitelist the whitelist to format

@return array An array containing the whitelist ready to match request parameters
Generate an array of whitelist properties to match the format that properties will have in the request .