Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Laravel version with type hint and strict types #15093

Closed
Lisennk opened this issue Aug 27, 2016 · 5 comments
Closed

Create Laravel version with type hint and strict types #15093

Lisennk opened this issue Aug 27, 2016 · 5 comments

Comments

@Lisennk
Copy link

Lisennk commented Aug 27, 2016

I think it's time to use PHP 7 features like strict types in new Laravel versions. Also you can transmit code via some compiler, that will produce PHP 5.6 compatible code as alternative.

@GrahamCampbell
Copy link
Member

I don't think Laravel will ever be going down this route. Not really by decision though.

NB There are plenty of PHP 5 compatible places that could be repainted that aren't already.

@GrahamCampbell
Copy link
Member

Laravel will probably be moving to PHP 7 soon anyway, so no messing about with backporting needed. (soon as in soon enough this stuff's not going to be a concern)

@allanlaal
Copy link

@taylorotwell time to reconsider type hints & strict types? :)

@allanlaal
Copy link

allanlaal commented Dec 6, 2022

old laravel/ideas tickets linked to this:

laravel/ideas#2561
laravel/ideas#1409
laravel/ideas#1034
laravel/ideas#284

@allanlaal
Copy link

for googlers:

discussion here: #36595
also vote on others:
https://github.com/laravel/framework/discussions?discussions_q=type+hint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants