Black Friday: the Laravel testing course is $149 instead of $249, through Dec 7. See the course →
logo

When it might be ok to use a mixed type

Intent matters more than enforcement

Joel Clermont
Joel Clermont
2026-04-17

From our daily Laravel tips email. Get the next one in your inbox.

PHP treats mixed the same as no type at all. So why bother writing it?

In today's short video, I make the case that the two are very different, even if PHP can't tell them apart.

Watch Now (3 min)

And after watching, don't forget to subscribe to our YouTube channel, so you don't miss future videos.

Here to help,

Joel

P.S. If your team is adding types to an existing Laravel codebase, don't just tell Claude to do it. Let me show you a reliable way to leverage types. Schedule a call with us.

Want a tip like this in your inbox every weekday?

Each one takes less than 2 minutes to read. Join 4,000+ Laravel developers who already get them.

email
No spam. Only real-world advice.
Toss a coin in the jar if you found this helpful.