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

Allow (and test) PHP 8.0 type compatibility #658

Merged
merged 17 commits into from
Dec 30, 2020

Conversation

Ocramius
Copy link
Owner

Fixes #605
Fixes #628
Fixes #637
Fixes #639

greg0ire and others added 13 commits December 30, 2020 16:12
A recent enough version is needed for compatiblity with PHP 8
That version is compatible with PHP 8
Many libs might be compatible although they do not advertise it, using
that flag will allow us to see if tests pass and to add more tests in
the meantime.
3.5.0 is compatible with PHP 8
It should be the easiest one.
…al `ReflectionNamedType`

A `ReflectionUnionType` may be encountered at this code location, which will lead to a hard
crash of the whole tool when running on PHP 8.0+ with newer code.
…-code`

This class was initially introduced to bring in fixes for behavior that was
meanwhile patched in upstream libraries. `laminas/laminas-code` is relatively
well maintained, and such overrides should be contributed in upstream from
now on, with a careful combination of those fixes with @dependabot upgrades
@Ocramius Ocramius added enhancement dependencies Pull requests that update a dependency file labels Dec 30, 2020
@Ocramius Ocramius added this to the 2.11.0 milestone Dec 30, 2020
@Ocramius Ocramius self-assigned this Dec 30, 2020
@Ocramius Ocramius changed the title Allow php 8.0 Allow (and test) PHP 8.0 type compatibility Dec 30, 2020
@Ocramius Ocramius mentioned this pull request Dec 30, 2020
…ith `ocramius/proxy-manager`

Sadly, `thecodingmachine/safe` has too lax dependency ranges ( https://github.com/thecodingmachine/safe/blob/a8ab0876305a4cdaef31b2350fcb9811b5608dbc/composer.json#L106 ),
and this trips testing for lower dependency ranges in CI.

As previously highlighted multiple times on the internets, `>=` and `*` (unbounded) should be avoided
when dealing with dependency ranges, as major releases **will** break, and old dependencies will be
installed by accident.
@Ocramius Ocramius merged commit 7552edc into 2.11.x Dec 30, 2020
@Ocramius Ocramius deleted the feature/#628-allow-php-8.0 branch December 30, 2020 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run CI under php nightly version?
3 participants