Open jerrywham opened 1 year ago
Have you tried adding a string
typehint to the constructor param? Or replacing the whole param with just ?string $namespace
?
Also you probably shouldn't be trim
ming $namespace
without first checking that it's not null.
Actually, by default it is null :
but it must be a string because of trim function :
So constructor must be defined by :