fleetlint Policy for a fleet of repositories
v0.4
Getting started

lint/configured/php

A linter is configured

Implements lint/configured for php.

Severitywarning
Tiers1, 2
Stacksphp
Scopeeach
Kindoutcome
Sourcelibrary v0.1.0
Selected byfleetlint-recommended@v0.1.0

Requirement

PHPStan (phpstan.neon.dist) or Psalm (psalm.xml) is configured in the project or a parent directory. Another analyzer is added with accept:.

Why

PHP’s type system is enforced at runtime only; the analyzer is the compile step the language lacks.

Fix

Add phpstan.neon.dist and the packages in require-dev (fleetlint fix --apply does both).

Agent instruction: Add phpstan.neon.dist from the template, require phpstan/phpstan and phpstan/phpstan-strict-rules in require-dev, and fix what it reports or generate a baseline.

fleetlint fix can apply this rule’s fix automatically (2 action(s)).

See: https://fleetlint.org/baseline/#static-analysis, https://fleetlint.org/stacks/#php


Generated by fleetlint docs from catalog v0.1.0.