It seems like $params defined by parameter $params on line 14 can also be of type array; however, Swift_Image::newInstance() does only seem to accept string|object<Swift_OutputByteStream>|null, maybe add an additional type check?
This check looks at variables that have been passed in as parameters and are passed out again
to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.