Skip to content

#50: remove pimple/pimple container #52

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

akuzia
Copy link

@akuzia akuzia commented Mar 8, 2023

No description provided.

@gnello gnello linked an issue May 9, 2023 that may be closed by this pull request
src/Driver.php Outdated
@@ -54,7 +54,7 @@ class Driver
*
* @var array
*/
private $defaultOptions = [
private const DEFAULT_OPTIONS = [
Copy link
Owner

Choose a reason for hiding this comment

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

Class constant visibility is only allowed since PHP 7.1, the minimum PHP version supported is currently >=5.5.0. Could you fix it? Even better if you bump the required PHP version up to >=8.1, since we are working on the 3.0 version (#50 (comment)).

Copy link
Author

Choose a reason for hiding this comment

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

Not sure about that. I'm currently running this changes from php7.3 onwards to 8.1. Looks like it is ok to keep them in 2.*. So I'd prefer to drop constant visibility.

Copy link
Owner

@gnello gnello May 10, 2023

Choose a reason for hiding this comment

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

Ok then, in this case we have to at least require PHP 5.6 instead of 5.5.
Anyway we can not merge these changes into the 2.*. version, as the constructor signature of the Driver class is changing.

My intention is to merge #52 and #54, require php8, search for other changes and tag the master with 3.0, how does it sound?

Copy link
Author

@akuzia akuzia Jun 6, 2023

Choose a reason for hiding this comment

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

Sounds ok, lets require 8.1 as minimum

Copy link
Author

Choose a reason for hiding this comment

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

I will consider adding some bare minimum unit test with matrix for supported php versions. Not sure about timing, but this looks like a must

@akuzia akuzia force-pushed the pimple-removal-50 branch from 6d94e7c to 03d7fc0 Compare May 10, 2023 09:08
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.

Decouple from Pimple
2 participants