34 | | 1. cast when when makes sense (`42 === (int) $user_var`) (PHP can emit conversion warnings, good! Less work for us.); |
35 | | 1. cast for filters `($thing = (string) apply_filters())` (PHP can emit conversion warnings, good! Less work for us.); |
36 | | 1. cast for return types `return (bool) $user_var`. |
37 | | 1. only emit deprecation notices when behavior changes from earlier WP versions. |
| 34 | 1. cast when it makes sense (`42 === (int) $user_var`) (PHP can emit conversion warnings, good! Less work for us.); |
| 35 | 1. cast filters `($thing = (string) apply_filters())` (PHP can emit conversion warnings, good! Less work for us.); |
| 36 | 1. cast return types `return (bool) $user_var`. |
| 37 | 1. only emit deprecation notices (doing it wrong) when behavior changes from earlier WP versions. |