Skip to content
Open
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: 0 additions & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,4 @@ jobs:
# Run PHPStan for static analysis.
- name: Run PHPStan Static Analysis
working-directory: ${{ env.PLUGIN_DIR }}
if: ${{ contains('8.0 8.1 8.2 8.3 8.4', matrix.php-versions) }}
run: php vendor/bin/phpstan analyse --memory-limit=1250M
5 changes: 5 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ includes:

# Parameters
parameters:
# Analyse against the minimum supported PHP version.
# This flags features (union types, enums, str_contains, etc.) that would
# fail on older PHP versions regardless of which PHP version PHPStan runs on.
phpVersion: 70100

# Paths to scan
# This should comprise of the base Plugin PHP file, plus directories that contain Plugin PHP files
paths:
Expand Down
5 changes: 5 additions & 0 deletions phpstan.neon.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ includes:

# Parameters
parameters:
# Analyse against the minimum supported PHP version.
# This flags features (union types, enums, str_contains, etc.) that would
# fail on older PHP versions regardless of which PHP version PHPStan runs on.
phpVersion: 70100

# Paths to scan
# This should comprise of the base Plugin PHP file, plus directories that contain Plugin PHP files
paths:
Expand Down
Loading