From a23eed08e9ce5b7c95163b88fb530122dcaa58a6 Mon Sep 17 00:00:00 2001 From: Alessandro Minoccheri Date: Wed, 7 Oct 2020 22:55:18 +0200 Subject: [PATCH] upgrade psalm errorLevel to 4 --- CHANGELOG.md | 7 ++++++- psalm.xml | 3 ++- src/UI/Command.php | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 212ad3a..01703d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/psalm.xml b/psalm.xml index 12fd1f2..d044bbb 100644 --- a/psalm.xml +++ b/psalm.xml @@ -1,6 +1,6 @@ + diff --git a/src/UI/Command.php b/src/UI/Command.php index 0545285..75ad5bc 100644 --- a/src/UI/Command.php +++ b/src/UI/Command.php @@ -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);