Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Conversation

@Xerkus
Copy link
Member

@Xerkus Xerkus commented Feb 3, 2019

Note: PHP 7.1 is out of active support and have only 9 months of security support left at this time.

@Xerkus Xerkus added this to the 4.0.0 milestone Feb 3, 2019
Copy link
Member

@michalbundyra michalbundyra left a comment

Choose a reason for hiding this comment

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

Is it just the bump (and PHPUnit upgrade) and other changes will be in separate PR? I would expect to use some PHP 7.2 features in the next major release.

@@ -1,7 +1,10 @@
.phpunit.result.cache
Copy link
Member

Choose a reason for hiding this comment

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

Why there is no slash at the beginning? Can it be in any place?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes.
It was placed in folder next to a test when I run just that specific test from PhpStorm. Probably CWD was not a project root.

"forum": "https://discourse.zendframework.com/c/questions/components"
},
"require": {
"php": "^7.2",
Copy link
Member

Choose a reason for hiding this comment

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

❤️

*/
public function testInvalidOptionType()
{
$this->expectException(ServiceNotCreatedException::class);
Copy link
Member

Choose a reason for hiding this comment

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

For me it will be much clearer to put these expectations just before the function which should throw the exception.
In that case it doesn't make a big difference, as the other line here is mocking, but in many case it could be wrong adding it at the very beginning part of the test.

Copy link
Member Author

Choose a reason for hiding this comment

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

This exactly mirrors deprecated annotation behavior.
Whole test suite needs a few improvement passes. Not in this PR/at this time.

@Xerkus
Copy link
Member Author

Xerkus commented Feb 3, 2019

Is it just the bump (and PHPUnit upgrade) and other changes will be in separate PR? I would expect to use some PHP 7.2 features in the next major release.

It is just a baseline PR. Next will be coding standard upgrade, followed by typehints PR followed by actual major changes

@Ocramius Ocramius self-assigned this Feb 4, 2019
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

🚢

@Ocramius Ocramius merged commit d8001f4 into zendframework:next Feb 4, 2019
@Xerkus Xerkus deleted the feature/bump-php branch February 4, 2019 21:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants