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

➕ Adding required dependency: php version #10

Closed
wants to merge 1 commit into from
Closed

➕ Adding required dependency: php version #10

wants to merge 1 commit into from

Conversation

ordago
Copy link

@ordago ordago commented Dec 17, 2020

Added the php version required to the composer file. The code used doesn't work below php7.

More specifically scalar type hints. See here:

https://3v4l.org/Mp7GNj

@xx1196
Copy link

xx1196 commented Mar 16, 2021

Buen detalle

Copy link

@MarioPerini MarioPerini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With your change it does'nt work with php 8.0
do you agree with ">=7.0" ?

@ordago
Copy link
Author

ordago commented Mar 19, 2021

@MarioPerini If I'm not mistaken that would mean saying it's compatible with php 9 (which doesn't exist so we don't know). It's usually recommended to be explicit.

 "php": "^7.0|^8.0",

@@ -9,7 +9,8 @@
}
],
"require": {
"ext-json": "*"
"ext-json": "*",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add this change to make it useful for php 7 and 8:

"php": "^7.0|^8.0",

@ArielMejiaDev
Copy link
Owner

it has already been added in the new 2.0 version of the package it supports PHP 7.4 to PHP 8.0 at this moment, when new PHP version 8.1 begin to be popular I will add support for this.

Thanks for this suggestion and the PR 👍

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

Successfully merging this pull request may close these issues.

None yet

4 participants