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

Update PHP version to 7.1 minimum. #35

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

shulard
Copy link
Contributor

@shulard shulard commented Feb 5, 2018

Hello,

I've worked on upgrading that library to PHP7.1 minimum version. I've splitted the commits for better usability. The version is upgraded in composer.json, the Source folder is created and the code use the new 7.1 syntax.

All the tests pass with the actual dependencies. Then I've added a last commit which move dependencies to dev-master. Actually, the composer update fail because of invalid references. I don't know if we need to add this last commit in this PR...

This is related to RFC: hoaproject/Central#75.

@shulard shulard changed the title Update to PHP7 Update to minimum PHP version to 7.1. Feb 5, 2018
@shulard shulard changed the title Update to minimum PHP version to 7.1. Update PHP version to 7.1 minimum. Feb 5, 2018
@@ -1,5 +1,6 @@
<?php

declare(strict_types=1);
Copy link
Member

Choose a reason for hiding this comment

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

You should re-run hoa devtools:cs.

@@ -46,7 +47,6 @@
*
* Abstract dispatcher.
*
* @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
Copy link
Member

Choose a reason for hiding this comment

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

You can also remove the @license block.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've dropped the @license bloc from all the files.

* @param array $rule Rule.
* @param \Hoa\Router $router Router.
* @param \Hoa\View\Viewable $view View.
* @return mixed
* @throws \Hoa\Dispatcher\Exception
Copy link
Member

Choose a reason for hiding this comment

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

Remove all PHPDoc for methods, methods, and constants. We will use Kitab.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've dropped remaining PHP Doc from all the files.

composer.json Outdated
@@ -46,5 +47,6 @@
"branch-alias": {
"dev-master": "1.x-dev"
}
}
},
"minimum-stability": "dev"
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if it is required. Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's required only to be able to install the dev-master dependencies. On the others PR, I haven't commited that change but updated the file locally.

I've dropped this line from the file.

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