Skip to content

Commit

Permalink
Fix: Handle empty configuration in pre Nette 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
trejjam committed Mar 31, 2019
1 parent 3da3c69 commit a6582ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions phpstan.neon
Expand Up @@ -24,6 +24,9 @@ parameters:
- # pre Nette 3.0 compatibility
message: ~^Casting to Contributte\\ThePay\\DI\\MerchantConfiguration something that's already Contributte\\ThePay\\DI\\MerchantConfiguration\.$~
path: %currentWorkingDirectory%/src/DI/ThePayExtension.php
- # pre Nette 3.0 compatibility
message: '~^Property Contributte\\ThePay\\DI\\ThePayExtension::\$config \(Contributte\\ThePay\\DI\\ExtensionConfiguration\) does not accept array\.$~'
path: %currentWorkingDirectory%/src/DI/ThePayExtension.php

- # hack for debugger
message: '~^Variable property access on \$this\(Contributte\\ThePay\\Payment\)\.$~'
Expand Down

0 comments on commit a6582ab

Please sign in to comment.