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 installation on PHP 8 #106

Merged
merged 1 commit into from Feb 16, 2020
Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Feb 14, 2020

Proposed Changes

As it was, the plugin when used by external standards, would block them from being tested on PHP 8.

As all the dependencies in the require section allow for PHP 8, there is no reason not to allow it.

The only dependencies currently in use which do not allow for PHP 8 yet are in the require-dev section. See the below output.

This includes updating the Travis script to:

  • Only do a full (dev) install when not on nightly.
  • Ignore platform requirements on nightly as otherwise the dev requirements would still block installation.
  • And as PHPCompatibility is in the require-dev section, we need to require it explicitly for nightly to make sure the integration test can run.

As the Travis build on PHP nightly passes, I'm semi-confident that all should be good, though confidence will grow once we add more unit/integration tests.

# composer prohibits php:8

composer/composer          1.9.3   requires  php (^5.3.2 || ^7.0)
composer/semver            1.5.1   requires  php (^5.3.2 || ^7.0)
seld/jsonlint              1.7.2   requires  php (^5.3 || ^7.0)
symfony/console            v4.4.4  requires  php (^7.1.3)
symfony/filesystem         v4.4.4  requires  php (^7.1.3)
symfony/finder             v4.4.4  requires  php (^7.1.3)
symfony/process            v4.4.4  requires  php (^7.1.3)
symfony/service-contracts  v2.0.1  requires  php (^7.2.5)

As it was, the plugin when used by external standards, would block them from being tested on PHP 8.

As all the dependencies in the `require` section allow for PHP 8, there is no reason not to allow it.

The only dependencies currently in use which do not allow for PHP 8 yet are in the `require-dev` section. See the below output.

This includes updating the Travis script to only do a full (`dev`) install when not on `nightly` and as PHPCompatibility is in the `require-dev` section, we need to require explicitly for `nightly` to make sure the integration test can run.

```bash
# composer prohibits php:8

composer/composer          1.9.3   requires  php (^5.3.2 || ^7.0)
composer/semver            1.5.1   requires  php (^5.3.2 || ^7.0)
seld/jsonlint              1.7.2   requires  php (^5.3 || ^7.0)
symfony/console            v4.4.4  requires  php (^7.1.3)
symfony/filesystem         v4.4.4  requires  php (^7.1.3)
symfony/finder             v4.4.4  requires  php (^7.1.3)
symfony/process            v4.4.4  requires  php (^7.1.3)
symfony/service-contracts  v2.0.1  requires  php (^7.2.5)
```
@jrfnl jrfnl force-pushed the feature/allow-installation-on-php-8 branch from 4dba9a7 to db97d73 Compare February 14, 2020 00:29
@Potherca
Copy link
Member

Nice work! Merging to master.

@Potherca Potherca merged commit 6971000 into master Feb 16, 2020
@jrfnl jrfnl deleted the feature/allow-installation-on-php-8 branch February 16, 2020 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants