The Best of Strong Typing in PHP
summary
Explains how to get the benefits of strong typing in PHP by using PHP's native type declarations, return types, and strict_types, and by adopting complementary tools like static analyzers (e.g., PHPStan/Psalm) and type-aware libraries. Describes practical techniques and configurations to enforce and incrementally introduce stronger typing in existing PHP codebases.
AI-written summary · about
chapters (23)
- 0:00Start
- 8:13CASE OF NULLABLE
- 10:19NULL OBJECT PATTERN CLASS
- 12:04CURRENT SITUATION
- 12:47PROJECT COVERAGE
- 15:06EVOLUTION OF A TYPE
- 15:32BETTER VALIDATION
- 16:35LESS VALIDATION
- 17:32CONSISTENCY
- 19:26SELF-CONSISTENCY
- 21:41ADOPTION OF STRONG TYPES
- 22:32AUTOMATIC DETECTION
- 25:56HARDER
- 27:14EVEN HARDER
- 27:52MULTIPLE TYPES
- 30:47INSUFFICIENT INTERFACES
- 31:34CLASSES, NOT INTERFACES
- 32:14INTERACTIONS OF
- 35:42FUNCTIONS (3)
- 38:41TYPING AND CLASSES
- 39:04FOSSILIZATION
- 39:39CLASS ORDER
- 41:38STATIC ANALYSIS TOOLS








