-
Notifications
You must be signed in to change notification settings - Fork 58
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
Require PHP 7.1, add phpstan, Doctrine coding standards, add scrutini… #38
Conversation
9ca129c
to
b08f65e
Compare
protected $enclosure = '"'; | ||
|
||
/** | ||
* @param string[] $initialHeaders |
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.
The parameters are $path
, $mode
and $isNeedBOM
.
They're needed to add the @param
in that doc 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 am adopting the https://github.com/doctrine/coding-standard in this project and it requires only having doc blocks for parameters that can't be hinted by the PHP language itself.
/** | ||
* @param $path | ||
* @param string $mode | ||
* @param bool $headersInFirstRow |
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.
Can you explain why remove these doc blocks?
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.
Because the type hints in the PHP language define everything needed so the doc blocks are not required.
} | ||
|
||
/** | ||
* @param $lineNumber zero-based index |
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 the same question as the previous comment.
tests/bootstrap.php
Outdated
@@ -1,3 +1,5 @@ | |||
<?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.
The declare(strict_types=1);
is added in the every related Tests
methods currently.
This bootstrap file seems to be useless and it should change this approach to adding the vendor/autload.php
in bootstrap
attribute for the phpunit tag in phpunit.xml.dist
file.
Here is the example:
<phpunit bootstrap="./vendor/autoload.php" colors="true">
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.
Agree. I will make that change.
…zer and update travis ci.
…zer and update travis ci.