new $handler() of type object is incompatible with the type callable expected by parameter $handler of PaymentGateway\PayPalSdk...lService::withHandler().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
24
$paypalService->withHandler(/** @scrutinizer ignore-type */ new $handler());