Strict Variable Types in Laravel: Practical Examples

Do you define variable types in Laravel/PHP? And, do you declare them as strict? Let’s look at practical examples of when those are useful. Links mentioned in the video: - Ash Allen’s PR to declare strict types: - My tweet asking the audience: - My course lesson: “Larastan: Catch Bugs with Static Analysis. Example 2: Missing Types“ - My video. Parameter Types in Laravel 10: Why It’s So Important - My video. PEST: Auto-Detect env(), dd() and Other “Leftovers“ - Reddit: “Why does noone use `declare(strict_types = 1);` in Laravel project.“ - - - - - Support the channel by checking out my products: - My Laravel courses: - Filament examples: - Livewire Kit Components: - - - - - Other places to follow: - My weekly Laravel newsletter: - My personal Twitter:
Back to Top