Skip to content

Class imports aren't strictly correct #170

@mewejo

Description

@mewejo

Hi,

I've been using the SDK today and it's been great, thank you.

However upon opening a PR and running PHPStan on the code, it's throwing the following error:

 ------ --------------------------------------------------------------------------------- 
  Line   Http/Controllers/GoCardlessWebhookController.php                                 
 ------ --------------------------------------------------------------------------------- 
  28     Parameter #2 $event of method                                                    
         Grizzlyware\Cub\Invoicing\PaymentGatewayDrivers\GoCardlessDriver::handleEvent()  
         expects GoCardlessPro\Resources\Event,                                           
         GoCardlessPro\GoCardlessPro\Resources\Event given.                               
 ------ --------------------------------------------------------------------------------- 

* @return GoCardlessPro\Resources\Event[] the events included in the

I expect the same issue is true for the exception below it too. While IDEs can work around it, PHPStan is rightly complaining about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions