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

Travis: add build against PHP 8.0 and fix failing test #41

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Dec 4, 2020

Travis: add build against PHP 8.0

PHP 8.0 has been branched off two months ago, so nightly is now PHP 8.1 and in the mean time PHP 8.0 was released last week.

As of today, there is a PHP 8.0 image available on Travis.

This PR adds a new build against PHP 8.0 to the matrix and, as PHP 8.0 has been released, that build is not allowed to fail.

ParallelLintLintTest::testDeprecated(): fix the test

I previously pointed out in #5 that this test was failing, but clearly no action has been taken on that in the mean time. Either way, fixing this now.

This test is expected to throw a deprecation warning for the PHP4-style class constructor (method named the same as the class).

In PHP 8, the deprecation warning is no longer thrown and PHP4-style constructor method are now treated as normal methods.

This fixes the test to have the correct expectations.

PHP 8.0 has been branched off two months ago, so `nightly` is now PHP 8.1 and in the mean time PHP 8.0 was released last week.

As of today, there is a PHP 8.0 image available on Travis.

This PR adds a new build against PHP 8.0 to the matrix and, as PHP 8.0 has been released, that build is not allowed to fail.
This test is expected to throw a deprecation warning for the PHP4-style class constructor (method named the same as the class).

In PHP 8, the deprecation warning is no longer thrown and PHP4-style constructor method are now treated as _normal_ methods.

This fixes the test to have the correct expectations.
@grogy
Copy link
Member

grogy commented Dec 27, 2020

Thank you

@grogy grogy merged commit c247a48 into php-parallel-lint:master Dec 27, 2020
@jrfnl jrfnl deleted the feature/travis-test-against-php8-no-failure branch December 29, 2020 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants