-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: master
Are you sure you want to change the base?
Conversation
@@ -1,5 +1,6 @@ | |||
<?php | |||
|
|||
declare(strict_types=1); |
There was a problem hiding this comment.
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
.
Source/Dispatcher.php
Outdated
@@ -46,7 +47,6 @@ | |||
* | |||
* Abstract dispatcher. | |||
* | |||
* @copyright Copyright © 2007-2017 Hoa community | |||
* @license New BSD License |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Source/Dispatcher.php
Outdated
* @param array $rule Rule. | ||
* @param \Hoa\Router $router Router. | ||
* @param \Hoa\View\Viewable $view View. | ||
* @return mixed | ||
* @throws \Hoa\Dispatcher\Exception |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
5808801
to
bd5a791
Compare
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
, theSource
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, thecomposer 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.