chore: update to phpstan major version 2#255
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #255 +/- ##
=========================================
Coverage 94.21% 94.21%
+ Complexity 264 263 -1
=========================================
Files 15 15
Lines 881 881
=========================================
Hits 830 830
Misses 51 51 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| $contentLength = $this->getHeader('Content-Length'); | ||
| if (null !== $contentLength && (is_int($contentLength) || ctype_digit($contentLength))) { | ||
| if (null !== $contentLength && ctype_digit($contentLength)) { |
There was a problem hiding this comment.
getHeader can only return string or null. So is_int() is useless code.
| $test = preg_match('/^AWS$/', $this->response->getHeader('WWW-Authenticate'), $matches); | ||
| self::assertTrue(true == $test, 'The WWW-Authenticate response didn\'t match our pattern'); | ||
| self::assertTrue(1 === $test, 'The WWW-Authenticate response didn\'t match our pattern'); |
There was a problem hiding this comment.
preg_match returns (int) 1 not (bool) true.
| $this->response->getHeader('WWW-Authenticate'), $matches); | ||
|
|
||
| self::assertTrue(true == $test, 'The WWW-Authenticate response didn\'t match our pattern. We received: '.$this->response->getHeader('WWW-Authenticate')); | ||
| self::assertTrue(1 === $test, 'The WWW-Authenticate response didn\'t match our pattern. We received: '.$this->response->getHeader('WWW-Authenticate')); |
There was a problem hiding this comment.
preg_match returns (int) 1 not (bool) true.
|
|
||
| /** | ||
| * @backupGlobals | ||
| * @backupGlobals enabled |
There was a problem hiding this comment.
backupGlobals should explicitly have the keyword "enabled"
There was a problem hiding this comment.
Did this annotation work as expected in phpunit without the suffix? If not we might just drop it
1778353 to
e9e5ed0
Compare
Issue #254
After this is reviewed and merged, I will look at doing similar in the 6.0 branch also.