Skip to content

Commit

Permalink
#132 Fix lint and phpstan.
Browse files Browse the repository at this point in the history
  • Loading branch information
fumikito committed Aug 28, 2024
1 parent 1a13b4f commit baba30b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wordpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
run: composer install --prefer-dist --no-progress

- name: Run PHP Stan
run: composer analyze -- --error-format=github
run: composer analyze:github

assets:
name: Assets Test
Expand Down
2 changes: 1 addition & 1 deletion app/Gianism/Pattern/Singleton.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ abstract class Singleton {
* Constructor
*
* @param array $argument
* @phpstan-ignore constructor.unusedParameter
*/
protected function __construct( array $argument = [] ) {
// @phpstan-ignore constructor.unusedParameter
// Override something.
}

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"lint": "phpcs --standard=phpcs.ruleset.xml .",
"fix": "phpcbf --standard=phpcs.ruleset.xml .",
"test": "phpunit",
"analyze": "phpstan analyze --memory-limit=2G"
"analyze": "phpstan analyze --memory-limit=2G",
"analyze:github": "phpstan analyze --memory-limit=2G --error-format=github"
},
"require": {
"php": ">=7.2",
Expand Down

0 comments on commit baba30b

Please sign in to comment.