Tag: static-analysis
PHPCS + PHPStan in CI (Workflow Guide) PHP 5.0+
Running PHP_CodeSniffer for style and PHPStan for type/logic errors as separate CI steps — each catching a distinct class of problem.
2mo ago
style intermediate
PHPDoc / Docblock PHP 5.0+
Structured comment blocks that document functions, classes, and properties — read by IDEs, static analysis tools, and documentation generators.
2mo ago
style beginner
PHPStan Levels 0–9 Explained PHP 7.1+
PHPStan's 10 strictness levels — from basic undefined variable checks (0) to full generic type inference and strict mixed handling (9).
2mo ago
style intermediate
Psalm Type Annotations PHP 7.1+
Psalm's docblock annotations — @param, @return, @template, @psalm-type — extend PHP's native type system to express generics, aliases, and complex types.
2mo ago
style intermediate
Python Type Hints & mypy Python 3.5+
Optional static type annotations — def greet(name: str) -> str — checked by mypy and IDEs at analysis time, ignored at runtime.
2mo ago
python intermediate