If on the other hand it is considered as given that validator is set (e.g. because using the ParamDefinitionFactory is mandatory) then testing $this->validator !== null in line 253 is pointless.
No patch, sorry. Don't know, what the correct solution should be. Use getValidator() instead of directly accessing the variable?
https://github.com/JeroenDeDauw/ParamProcessor/blob/master/src/ParamDefinition.php#L251 will trigger a RuntimeError if
validator
is not set (e.g. for the Excel format up until SRF 2.3).If on the other hand it is considered as given that
validator
is set (e.g. because using the ParamDefinitionFactory is mandatory) then testing$this->validator !== null
in line 253 is pointless.No patch, sorry. Don't know, what the correct solution should be. Use
getValidator()
instead of directly accessing the variable?