diff --git a/.gitattributes b/.gitattributes index 1e7bf2f..27356a7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -9,6 +9,7 @@ /.editorconfig export-ignore /.gitattributes export-ignore /.gitignore export-ignore +/phpstan.neon export-ignore # Explicit text file types *.php text diff --git a/.github/workflows/PHPStan.yml b/.github/workflows/PHPStan.yml new file mode 100644 index 0000000..62e061a --- /dev/null +++ b/.github/workflows/PHPStan.yml @@ -0,0 +1,18 @@ +name: PHPStan + +on: + pull_request: + +permissions: read-all + +jobs: + build: + uses: The-FireHub-Project/.github/.github/workflows/RunCommandOnMatrix.yml@master + with: + title: "Run PHPStan" + phpVersions: ${{ vars.PHP_VERSIONS }} + phpExtensions: ${{ vars.PHP_EXTENSIONS }} + tools: "phpstan:2.x" + command: "phpstan analyse" + secrets: + GH_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file diff --git a/CITATION.cff b/CITATION.cff index 3ad7641..9dd7bdb 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -38,4 +38,4 @@ identifiers: value: "https://github.com/The-FireHub-Project/Core-Standard" description: The GitHub URL of this version. - type: other - value: "packagist:firehub/core-standard" + value: "packagist:the-firehub-project/core-standard" diff --git a/composer.json b/composer.json index 5ccd483..64e7613 100644 --- a/composer.json +++ b/composer.json @@ -8,6 +8,10 @@ "require": { "php": "^8.5" }, + "require-dev": { + "phpstan/phpstan": "^2.0", + "the-firehub-project/phpstan-rules": "dev-develop" + }, "minimum-stability": "stable", "authors": [ { diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..6161413 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,6 @@ +includes: + - vendor/the-firehub-project/phpstan-rules/src/config/base.neon + +parameters: + paths: + - src/ \ No newline at end of file