Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/phpstan.neon export-ignore

# Explicit text file types
*.php text
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/PHPStan.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down
6 changes: 6 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
includes:
- vendor/the-firehub-project/phpstan-rules/src/config/base.neon

parameters:
paths:
- src/
Loading