Skip to content

Commit

Permalink
Allow impure method call
Browse files Browse the repository at this point in the history
  • Loading branch information
endroid committed Dec 2, 2020
1 parent b171d67 commit 033da7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ErrorCorrectionLevel.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function toBaconErrorCorrectionLevel(): BaconErrorCorrectionLevel
{
$name = strtoupper(substr($this->getValue(), 0, 1));

/** @psalm-suppress ImpureMethodCall */
return BaconErrorCorrectionLevel::valueOf($name);
}
}

0 comments on commit 033da7c

Please sign in to comment.