Skip to content
Permalink
Browse files

More phpstan related fixes.

  • Loading branch information...
dereuromark committed Nov 21, 2017
1 parent 229ecd1 commit afb928ce13a9dbc0a111f2bd544e24fa1ecc060a
Showing with 3 additions and 2 deletions.
  1. +1 −0 phpstan.neon
  2. +2 −2 src/Http/Response.php
@@ -20,6 +20,7 @@ parameters:
- '#Result of method Cake\\Http\\Response::send\(\) \(void\) is used#'
- '#Method Cake\\View\\Form\\ContextInterface::val\(\) invoked with 2 parameters, 1 required#'
- '#Access to an undefined property Exception::\$queryString#'
- '#Access to an undefined property PHPUnit\\Framework\\Test::\$fixtureManager#'
- '#Method Redis::#'
- '#Call to an undefined method Traversable::getArrayCopy().#'
earlyTerminatingMethodCalls:
@@ -1834,7 +1834,7 @@ public function protocol($protocol = null)
* If called with no arguments returns the last Content-Length set
*
* @param int|null $bytes Number of bytes
* @return int|null
* @return string|null
* @deprecated 3.4.0 Use withLength() to set length instead.
*/
public function length($bytes = null)
@@ -1844,7 +1844,7 @@ public function length($bytes = null)
}
if ($this->hasHeader('Content-Length')) {
return (int)$this->getHeaderLine('Content-Length');
return $this->getHeaderLine('Content-Length');
}
return null;

0 comments on commit afb928c

Please sign in to comment.
You can’t perform that action at this time.