It seems like trans('user:users.token generated') targeting trans() can also be of type object<Symfony\Component...on\TranslatorInterface>; however, flash() does only seem to accept string|null, maybe add an additional type check?
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
It seems like trans('core::core.messag...'name' => 'Api Token')) targeting trans() can also be of type object<Symfony\Component...on\TranslatorInterface>; however, flash() does only seem to accept string|null, maybe add an additional type check?
This check looks at variables that 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 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.