Skip to content

Commit

Permalink
Fix PhpStan
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Jan 18, 2021
1 parent 75a32a5 commit 2eaefc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ includes:
- vendor/spaze/phpstan-disallowed-calls/disallowed-execution-calls.neon

parameters:
checkMissingIterableValueType: false
ignoreErrors:
- '#Call to an undefined method SoapClient::.+\(\).#'
2 changes: 1 addition & 1 deletion src/Model/PacketAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public function getZip(): ?string
return null;
}

return (string) preg_replace('/^(\d{3})(\d{2})$/', '$1 $2', $this->zip);
return (string) preg_replace('/^(\d{3})(\d{2})$/', '$1 $2', (string) $this->zip);
}


Expand Down

0 comments on commit 2eaefc9

Please sign in to comment.