Skip to content

Remove strict typing for PHP 5.6 compatibility#51

Merged
dereuromark merged 1 commit intomasterfrom
php-56-support
Oct 29, 2020
Merged

Remove strict typing for PHP 5.6 compatibility#51
dereuromark merged 1 commit intomasterfrom
php-56-support

Conversation

@ADmad
Copy link
Copy Markdown
Member

@ADmad ADmad commented Oct 28, 2020

Refs #50.

@ADmad ADmad added this to the 1.3.x milestone Oct 28, 2020
Copy link
Copy Markdown
Member

@dereuromark dereuromark left a comment

Choose a reason for hiding this comment

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

I see, the PHP constraint would allow this be controlled/constraint as per version to download.

@othercorey
Copy link
Copy Markdown
Contributor

@nojimage Can you test this with 5.6 and composer 2?

@ravage84
Copy link
Copy Markdown
Member

Wouldn't it make sense to re-add PHP 5.6-7.1 to Travis CI, then?

@ADmad
Copy link
Copy Markdown
Member Author

ADmad commented Oct 28, 2020

Phpunit 8+ requires : void return typehint for setUp() method while lower versions don't.

So running the testsuite on all supported PHP versions would either require modifying the test case file after installation or having separate files and running required one based on PHP one.

I personally am not interested in spending time on that.

@othercorey
Copy link
Copy Markdown
Contributor

This is just a quick fix to have a version that's compatible so we can move on.

@nojimage
Copy link
Copy Markdown
Contributor

It works fine on PHP 5.6 with composer 2.
thank you.

@dereuromark dereuromark merged commit 4973312 into master Oct 29, 2020
@dereuromark dereuromark deleted the php-56-support branch October 29, 2020 01:25
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.

5 participants