-
Notifications
You must be signed in to change notification settings - Fork 19
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
Increase PHPStan level to 5 #20
Conversation
@@ -213,7 +212,7 @@ public function iWaitSecondsUntilISeeInTheElement($count, $text, $element): void | |||
} catch (StaleElementReference $e) { | |||
// assume page reloaded whilst we were still waiting | |||
} | |||
} while (!$found && (time() - $startTime < $count)); |
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.
Always true
.
@@ -98,7 +98,7 @@ public function theResponseShouldBeEmpty(): void | |||
{ | |||
$actual = $this->request->getContent(); | |||
$message = "The response of the current page is not empty, it is: $actual"; | |||
$this->assertTrue(null === $actual || '' === $actual, $message); |
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.
@@ -8,9 +8,9 @@ | |||
class SystemContext implements Context | |||
{ | |||
private $root; | |||
private $output; |
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.
Both properties were "is never written, only read".
This PR increases PHPStan level to 5 and fixes all errors.