laravel / ideas

Issues board used for Laravel internals discussions.
939 stars 28 forks source link

Add PHP Type Declarations to Laravel Components #2614

Closed dinhquochan closed 3 years ago

dinhquochan commented 3 years ago

Now, Laravel 9.x is required PHP version 7.4 and 8.0. I think we should update all classes in Laravel core to support PHP Type Declarations (type-hints).

What do you think?

akbarjimi commented 3 years ago

I agree with you. Laravel, as the major framework of the PHP world, needs to adapt to language changes and push developers to use new features.

taylorotwell commented 3 years ago

Adding types is a breaking change. You are free to go type crazy in your own application. 👍