It seems like $key can also be of type null; however, parameter $string of trim() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
30
if (!empty(trim(/** @scrutinizer ignore-type */ $key))) {
It seems like $key can also be of type null; however, parameter $apiKey of BitBag\SyliusMolliePlugi...stCreator::testApiKey() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
The expression return $client->methods->allActive() returns the type Mollie\Api\Resources\BaseCollection which includes types incompatible with the type-hinted return Mollie\Api\Resources\MethodCollection.