Skip to content

Commit 4b91c1f

Browse files
committed
Level 3
1 parent 8ae5b11 commit 4b91c1f

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/cli/Arguments.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public function getInvalidArguments() {
282282
*
283283
* @param mixed $flag Either a string representing the flag or an
284284
* cli\arguments\Argument object.
285-
* @return array
285+
* @return array|null
286286
*/
287287
public function getFlag($flag) {
288288
if ($flag instanceOf Argument) {
@@ -345,7 +345,7 @@ public function isStackable($flag) {
345345
*
346346
* @param mixed $option Either a string representing the option or an
347347
* cli\arguments\Argument object.
348-
* @return array
348+
* @return array|null
349349
*/
350350
public function getOption($option) {
351351
if ($option instanceOf Argument) {

lib/cli/Progress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function estimated() {
9797
}
9898

9999
$estimated = round($this->_total / $speed);
100-
return $estimated;
100+
return (int)$estimated;
101101
}
102102

103103
/**

lib/cli/table/Renderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function setWidths(array $widths, $fallback = false) {
6262
* Render a border for the top and bottom and separating the headers from the
6363
* table rows.
6464
*
65-
* @return string The table border.
65+
* @return string|null The table border.
6666
*/
6767
public function border() {
6868
return null;

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
level: 2
2+
level: 3
33
paths:
44
- lib
55
scanDirectories:

0 commit comments

Comments
 (0)