Skip to content

Commit

Permalink
Merge pull request #58 from AlessandroMinoccheri/improve-psalm
Browse files Browse the repository at this point in the history
upgrade psalm errorLevel to 4
  • Loading branch information
JellyBellyDev committed Oct 8, 2020
2 parents 04006c8 + a23eed0 commit 080d389
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [v2.0.3] - 2020-10-08

### Changed
* upgrade psalm error level to 4

## [v2.0.2] - 2020-09-17

Expand Down Expand Up @@ -106,7 +110,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- stable release for poser


[Unreleased]: https://github.com/badges/poser/compare/v2.0.2...HEAD
[Unreleased]: https://github.com/badges/poser/compare/v2.0.3...HEAD
[v2.0.3]: https://github.com/badges/poser/tree/v2.0.3
[v2.0.2]: https://github.com/badges/poser/tree/v2.0.2
[v2.0.1]: https://github.com/badges/poser/tree/v2.0.1
[v2.0.0]: https://github.com/badges/poser/tree/v2.0.0
Expand Down
3 changes: 2 additions & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<psalm
errorLevel="6"
errorLevel="4"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
Expand All @@ -12,6 +12,7 @@
<directory name="spec" />
<ignoreFiles>
<directory name="vendor" />
<directory name="spec" />
</ignoreFiles>
</projectFiles>
</psalm>
4 changes: 2 additions & 2 deletions src/UI/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$imageContent = $this->poser->generate($subject, $status, $color, $style, $format);

if ($input->getOption('path')) {
$this->storeImage($output, $input->getOption('path'), $imageContent);
$this->storeImage($output, $input->getOption('path'), (string) $imageContent);
} else {
$this->flushImage($output, $imageContent);
$this->flushImage($output, (string) $imageContent);
}
} catch (\Exception $e) {
$this->printHeaderOnce($output);
Expand Down

0 comments on commit 080d389

Please sign in to comment.