Skip to content

Commit 3d82044

Browse files
committed
Bug fix
1 parent daf0024 commit 3d82044

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Plugin/Psalm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ public function __construct(Builder $builder, Build $build, array $options = [])
3535

3636
$this->executable = $this->findBinary('psalm');
3737

38-
if (!empty($options['allowed_errors']) && \is_int($options['allowed_errors'])) {
38+
if (isset($options['allowed_errors']) && \is_int($options['allowed_errors'])) {
3939
$this->allowedErrors = $options['allowed_errors'];
4040
} else {
4141
$this->allowedErrors = 0;
4242
}
4343

44-
if (!empty($options['allowed_warnings']) && \is_int($options['allowed_warnings'])) {
44+
if (isset($options['allowed_warnings']) && \is_int($options['allowed_warnings'])) {
4545
$this->allowedWarnings = $options['allowed_warnings'];
4646
} else {
4747
$this->allowedWarnings = 0;

0 commit comments

Comments
 (0)