Skip to content

Commit

Permalink
increase phpstan level to 8 [Closes #54]
Browse files Browse the repository at this point in the history
  • Loading branch information
JanTvrdik authored and dg committed Dec 11, 2023
1 parent 94b3ea0 commit a6d3a6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
parameters:
level: 5
level: 8
checkMissingIterableValueType: false
errorFormat: raw

paths:
Expand Down
4 changes: 3 additions & 1 deletion src/Schema/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

namespace Nette\Schema;

use Nette;


final class Message
{
Expand Down Expand Up @@ -91,6 +93,6 @@ public function toString(): string
return preg_replace_callback('~( ?)%(\w+)%~', function ($m) use ($vars) {
[, $space, $key] = $m;
return $vars[$key] === null ? '' : $space . $vars[$key];
}, $this->message);
}, $this->message) ?? throw new Nette\InvalidStateException(preg_last_error_msg());
}
}
2 changes: 1 addition & 1 deletion src/Schema/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
final class Processor
{
public array $onNewContext = [];
private ?Context $context;
private Context $context;
private bool $skipDefaults = false;


Expand Down

0 comments on commit a6d3a6d

Please sign in to comment.