Skip to content

Commit

Permalink
attempt phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
tregismoreira committed Jul 22, 2024
1 parent 0317670 commit 948f043
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"psr-4": {
"Drupal\\Tests\\social\\PHPStan\\": "tests/phpstan/src",
"Drupal\\social\\Behat\\": "tests/behat/features/bootstrap",
"Drupal\\social\\": "src"
"Drupal\\social\\": "src",
"Drupal\\social_eda\\": "src/PHPStan/Stubs/social_eda/",
"Drupal\\social_eda_dispatcher\\": "src/PHPStan/Stubs/social_eda_dispatcher/"
}
},
"extra": {
Expand Down
14 changes: 7 additions & 7 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ parameters:
# Stub files provide type information for classes and functions that are
# otherwise difficult to analyze, improving the accuracy of PHPStan's checks.
stubFiles:
- %currentWorkingDirectory%/html/profiles/contrib/social/src/PHPStan/Stubs/social_eda/Address.stub
- %currentWorkingDirectory%/html/profiles/contrib/social/src/PHPStan/Stubs/social_eda/DateTime.stub
- %currentWorkingDirectory%/html/profiles/contrib/social/src/PHPStan/Stubs/social_eda/Entity.stub
- %currentWorkingDirectory%/html/profiles/contrib/social/src/PHPStan/Stubs/social_eda/Href.stub
- %currentWorkingDirectory%/html/profiles/contrib/social/src/PHPStan/Stubs/social_eda/User.stub
- %currentWorkingDirectory%/html/profiles/contrib/social/src/PHPStan/Stubs/social_eda_dispatcher/Dispatcher.stub
- %currentWorkingDirectory%/html/profiles/contrib/social/src/PHPStan/Stubs/social_eda_dispatcher/CloudEvent.stub
- src/PHPStan/Stubs/social_eda/Address.stub
- src/PHPStan/Stubs/social_eda/DateTime.stub
- src/PHPStan/Stubs/social_eda/Entity.stub
- src/PHPStan/Stubs/social_eda/Href.stub
- src/PHPStan/Stubs/social_eda/User.stub
- src/PHPStan/Stubs/social_eda_dispatcher/Dispatcher.stub
- src/PHPStan/Stubs/social_eda_dispatcher/CloudEvent.stub

0 comments on commit 948f043

Please sign in to comment.