Skip to content

Commit

Permalink
Add some ignoring to phpstan for failing to sniff magic methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Hickson committed Nov 22, 2017
1 parent 2815b09 commit f611589
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
parameters:
autoload_files:
- vendor/autoload.php
ignoreErrors:
- '#Cannot access property GoCardlessPro\\Resources\\Payment::\$(id|amount|amount_refunded|currency|description|reference|status) from current scope#' # magic methods not sniffed by phpstan correctly
- '#Cannot access property GoCardlessPro\\Resources\\Subscription::\$(id|amount|currency|status|name|interval|interval_unit|day_of_month|month|payment_reference|upcoming_payments) from current scope#' # magic methods not sniffed by phpstan correctly
5 changes: 5 additions & 0 deletions src/Message/PaymentResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ class PaymentResponse extends AbstractResponse
const FAILED = 'failed';
const CHARGED_BACK = 'charged_back';

/**
* @var Payment
*/
protected $data;

/**
* @return Payment|null
*/
Expand Down

0 comments on commit f611589

Please sign in to comment.