auraphp / Aura.Filter

Validate and sanitize arrays and objects.
MIT License
159 stars 33 forks source link

4.x :: Multidimensional support and failures #155

Open harikt opened 2 years ago

harikt commented 2 years ago

This is related to https://github.com/auraphp/Aura.Filter/issues/117 .

As we add type definition like

public function add(string $field, string $message, array $args = array()): FailureInterface

The message is no longer a string, it can become an array when it is using subfilter .

@pmjones have forseen this

things are going to be difficult and ugly

I am still checking whether there is a way.