In this video I'll go over all the nuances of type juggling, type coercion, dynamic types and some static types. I'll show some ways to make this less jarring, and to prevent bugs and security issues and decrease cognitive load in professional environments.
00:00 Intro
00:15 Dynamic types
00:46 Type declarations
01:05 Static types
01:28 Available types
02:16 Type casting
03:23 Type coercion
04:27 Disabling type coercion
05:08 Type juggling
05:27 Numeric context
06:01 String context
06:40 Comparative context
07:42 Logical context
08:28 Integral context
08:41 Function context
08:51 Non-strict functions
09:16 Switch/case
09:29 Empty
09:46 Short ternary
10:00 PHPStan/outro