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

Fixed scoper-autoload.php PHP 5.6 incompatibility #1024

Merged
merged 2 commits into from
May 3, 2024
Merged

Fixed scoper-autoload.php PHP 5.6 incompatibility #1024

merged 2 commits into from
May 3, 2024

Conversation

marekdedic
Copy link
Contributor

Closes #1023

Copy link
Member

@theofidry theofidry left a comment

Choose a reason for hiding this comment

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

I thought the Composer autoloader now requires PHP 7.2 minimum?

src/Autoload/ScoperAutoloadGenerator.php Show resolved Hide resolved
@marekdedic
Copy link
Contributor Author

I thought the Composer autoloader now requires PHP 7.2 minimum?

I don't think so - the autoload script definitely checks if it's on PHP 5.6 or older, so I suppose it should support very old PHP...? You can't run composer on such old PHP, but that's a different thing from running the generated autoloader...

@theofidry theofidry enabled auto-merge (squash) May 3, 2024 20:06
@theofidry
Copy link
Member

Thank you @marekdedic, I can't promise this sticks around without any automated test for it but it doesn't hurt to have

@theofidry theofidry merged commit bc0a7d8 into humbug:main May 3, 2024
126 checks passed
@marekdedic marekdedic deleted the php-5-fix branch May 3, 2024 20:47
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.

scoper-autoload.php doesn't support PHP 5.6 (again)
2 participants