Typing in PHP: how does it work?
summary
Explains how PHP's type system works, covering type declarations, type checking, and behavior of scalar, class and nullable types in PHP. Describes language features like type hints, return types, coercive vs strict typing modes, and how the engine enforces or converts types during execution.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 3:15Type terminology and symbols
- 10:03Available PHP types
- 14:18Inheritance and LSP
- 21:48Subtype checking
- 26:54PHP type system future
- 29:43Scalar type coercion
- 34:00Q&A








