Skip to content

Commit

Permalink
Add missing allow-plugins (#56)
Browse files Browse the repository at this point in the history
* Add missing allow-plugins

* Allow phpstan/extension-installer

* Configure ignoreErrors

* Enable workflow_dispatch

* Fix ignoreErrors
  • Loading branch information
trejjam committed Jul 25, 2022
1 parent 0625ff3 commit 8b17167
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- "*"
schedule:
- cron: "0 8 * * 1" # At 08:00 on Monday
workflow_dispatch:

env:
extensions: "soap json hash"
Expand Down
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,11 @@
"branch-alias": {
"master": "v4.1.x-dev"
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
}
}
}
18 changes: 16 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
includes:

parameters:
ignoreErrors:
- # object to array
message: '~^Variable property access on \$this\(Tp\\DataApi\\DataApiObject\)\.$~'
path: %currentWorkingDirectory%/src/DataApi/DataApiObject.php
- # offsetGet, offsetSet
message: '~^Variable method call on \$this\(Tp\\DataApi\\DataApiObject\)\.$~'
path: %currentWorkingDirectory%/src/DataApi/DataApiObject.php
- # setProperty, getProperty
message: '~^Variable property access on \$this\(Tp\\ReturnedPayment\)\.$~'
path: %currentWorkingDirectory%/src/ReturnedPayment.php
- # generic formaters
message: '~^Variable static method call on Tp\\DataApi\\ValueFormatter\.$~'
path: %currentWorkingDirectory%/src/DataApi/ValueFormatter.php
- # remote API call
message: '~^Variable method call on SoapClient\.$~'
path: %currentWorkingDirectory%/src/Helper/DataApi.php

0 comments on commit 8b17167

Please sign in to comment.