Skip to content
Permalink
Browse files

Fix call to impure function

  • Loading branch information...
muglug committed Aug 31, 2019
1 parent cfdfb9b commit 37d09cdefabfb1504f879f7013e6b0d4de9fd573
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/PropertyTypeTest.php
@@ -57,10 +57,10 @@ class X {
/** @var ?int **/
private $x;
public function getX(): int {
public function getX(bool $b): int {
$this->x = 5;
if (rand(0, 1)) {
if ($b) {
$this->modifyX();
throw new \Exception("bad");
}

0 comments on commit 37d09cd

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