Skip to content

Add PHP requirements & travis fixes #6

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

Merged
merged 6 commits into from
Jul 10, 2017
Merged

Add PHP requirements & travis fixes #6

merged 6 commits into from
Jul 10, 2017

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented Jul 10, 2017

No description provided.

@@ -14,7 +14,8 @@
}
},
"require": {
"amphp/artax": "^3",
"php": "^7.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be >=7.0 as PHP doesn't follow semantic versioning anyway.

Copy link
Member Author

Choose a reason for hiding this comment

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

But we do not support PHP8.

If one should be super strict we should write: 7.0.* || 7.1.*. Do you think we should do that?

Copy link
Collaborator

@kelunik kelunik Jul 10, 2017

Choose a reason for hiding this comment

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

Right, and we don't support 7.2 either strictly speaking, because it isn't in feature freeze yet. There are some BC breaks in every version of PHP. What's the purpose of restricting the upper bound? Most code will just run fine. As long as PHP itself isn't installed via Composer, I don't see any reason to restrict the upper bound, which will mostly just work fine for new versions.

Copy link
Collaborator

Choose a reason for hiding this comment

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

That said, PHP 8.0 is probably far enough away, so it's not too much work to bump it once every 5-10 years.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah. That is why I suggested ^7.0 because 7.0.* || 7.1.* is overkill and >=7.0 is too generous.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Code that ran fine on 5.6 mostly runs fine on 7.0, but I don't care enough to discuss it further. Let's wait for 8.0.

Copy link
Member Author

Choose a reason for hiding this comment

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

True. It is a minor thing.

@Nyholm
Copy link
Member Author

Nyholm commented Jul 10, 2017

Why doesn't it run any tests? https://travis-ci.org/php-http/artax-adapter/jobs/251959910

@Nyholm
Copy link
Member Author

Nyholm commented Jul 10, 2017

(Found it)

@kelunik
Copy link
Collaborator

kelunik commented Jul 10, 2017

Yes, forgot to update the phpunit.xml.dist when I renamed the test directory to tests like all other packages. https://github.com/php-http/artax-adapter/blob/master/phpunit.xml.dist#L5

@Nyholm
Copy link
Member Author

Nyholm commented Jul 10, 2017

Im done with this PR. Merge it if you like it.

@kelunik
Copy link
Collaborator

kelunik commented Jul 10, 2017

LGTM.

@kelunik kelunik merged commit d259285 into master Jul 10, 2017
@kelunik kelunik deleted the Nyholm-patch-2 branch July 10, 2017 11:57
@Nyholm
Copy link
Member Author

Nyholm commented Jul 10, 2017

Thank you for merging.

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.

2 participants