Skip to content

Commit

Permalink
Optimize interface methods comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Apr 2, 2022
1 parent 07b7408 commit 5f80b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compiler/MethodInjector.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function inject(string $file, ClassMethod $method, array $invariants): Cl
$postconditions[] = $invariant->getExpression();
}

if (\is_array($method->stmts)) {
if ($method->stmts !== null) {
$method->stmts = $this->getDecorator($method->stmts, $preconditions, $postconditions);
}

Expand Down

0 comments on commit 5f80b16

Please sign in to comment.