Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PetroGromovo's avatar

What for to add declare(strict_types=1) in laravel app ?

Lookin at some laravel examples I see

declare(strict_types=1);

at top of many files, including models or controllers.

Does it give some advantages in my apps and what I have I to pay attention at while developing and testing code with larastan ?

Thanks in advance!

0 likes
1 reply

Please or to participate in this conversation.