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

Lower PHP version support #1

Closed
ZBrettonYe opened this issue Sep 5, 2020 · 3 comments
Closed

Lower PHP version support #1

ZBrettonYe opened this issue Sep 5, 2020 · 3 comments

Comments

@ZBrettonYe
Copy link

Love the idea of this package.

Cloud this package require lower PHP version? since the Laravel official framework 7.x PHP version minimum requirement is 7.2.5

@rawilk
Copy link
Owner

rawilk commented Sep 5, 2020

Thanks for your interest in this package. Since I use php 7.4 syntax in the package, such as specifying types for class properties, and using arrow functions (fn () => ), it is not possible to lower the minimum php version.

I personally only use php 7.4, which is why I write my packages using the available language syntax. I see no reason why you wouldn't upgrade your php versions, but I do understand there may be cases where you are limited by your hosting provider or something like that.

@rawilk rawilk closed this as completed Sep 5, 2020
@rawilk
Copy link
Owner

rawilk commented Sep 5, 2020

Btw, you are more than welcome to fork and maintain your own version that is compatible with php 7.2 or whatever version you need. Just be sure to include the original license in the repo.

@ZBrettonYe
Copy link
Author

Thanks for your speedy respond 👍

I will upgrade my PHP environment to 7.4 for this package, since I will upgrade it one day anyway

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

2 participants