Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
Meldiron committed Jul 10, 2023
1 parent 65f75d1 commit 3136a45
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 20 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"lint": "./vendor/bin/pint --test --config pint.json",
"format": "./vendor/bin/pint --config pint.json",
"check": "./vendor/bin/phpstan analyse --level 8 -c phpstan.neon app src tests",
"check": "./vendor/bin/phpstan analyse --level 8 -c phpstan.neon src tests",
"test": "./vendor/bin/phpunit --configuration phpunit.xml --debug"
},
"autoload": {
Expand All @@ -35,6 +35,7 @@
},
"require-dev": {
"phpunit/phpunit": "^9.4",
"laravel/pint": "1.2.*"
"laravel/pint": "1.2.*",
"phpstan/phpstan": "1.8.*"
}
}
85 changes: 72 additions & 13 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
parameters:
scanDirectories:
- vendor/swoole/ide-helper
excludePaths:
- tests/resources
6 changes: 3 additions & 3 deletions src/VCS/Adapter/Git/GitHub.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

class GitHub extends Git
{
const EVENT_PUSH = 'push';
public const EVENT_PUSH = 'push';

const EVENT_PULL_REQUEST = 'pull_request';
public const EVENT_PULL_REQUEST = 'pull_request';

const EVENT_INSTALLATION = 'installation';
public const EVENT_INSTALLATION = 'installation';

protected string $endpoint = 'https://api.github.com';

Expand Down

0 comments on commit 3136a45

Please sign in to comment.