Skip to content

Commit c200113

Browse files
committed
phpstan
1 parent 8ab2330 commit c200113

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

.phpstan.dist.baseline.neon

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -618,18 +618,6 @@ parameters:
618618
count: 1
619619
path: app/code/core/Mage/Adminhtml/controllers/Customer/System/Config/ValidatevatController.php
620620

621-
-
622-
message: '#^Parameter \#2 \$timestamp of function date expects int\|null, array\|bool given\.$#'
623-
identifier: argument.type
624-
count: 1
625-
path: app/code/core/Mage/Adminhtml/controllers/CustomerController.php
626-
627-
-
628-
message: '#^Parameter \#2 \$value of method Zend_Controller_Response_Abstract\:\:setHeader\(\) expects string, array\|bool given\.$#'
629-
identifier: argument.type
630-
count: 1
631-
path: app/code/core/Mage/Adminhtml/controllers/CustomerController.php
632-
633621
-
634622
message: '#^Variable \$id in isset\(\) always exists and is not nullable\.$#'
635623
identifier: isset.variable

app/code/core/Mage/Log/Model/Aggregation.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ private function _date($in, $offset = null)
152152
/**
153153
* @param string|int $in
154154
* @param null $offset deprecated
155-
* @return false|int
155+
* @return int
156+
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
156157
*/
157158
private function _timestamp($in, $offset = null)
158159
{

lib/Varien/Io/File.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@ public function streamClose()
266266
*
267267
* @param string $part the part of statistic
268268
* @param mixed $default default value for part
269-
* @return array|bool
270-
*
269+
* @return array|string|false
271270
* @SuppressWarnings("PHPMD.ErrorControlOperator")
272271
*/
273272
public function streamStat($part = null, $default = null)

0 commit comments

Comments
 (0)