From f1deb8379e4a04f0d388db655a6b45e499d3d748 Mon Sep 17 00:00:00 2001 From: Michael Diodone Date: Thu, 12 Oct 2023 14:53:57 +0200 Subject: [PATCH] Fix psalm issues --- src/Model/Container.php | 4 +++- src/Model/Entry.php | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Model/Container.php b/src/Model/Container.php index 08964f2..8a61ff3 100644 --- a/src/Model/Container.php +++ b/src/Model/Container.php @@ -3,13 +3,15 @@ namespace Geissler\Converter\Model; use ReturnTypeWillChange; -use Geissler\Converter\Model\Entry; /** * Abstract container to access groups of objects as "array"-object. * * @author Benjamin Geißler * @license MIT + * + * @template-implements \IteratorAggregate + * @template-implements \ArrayAccess */ abstract class Container implements \IteratorAggregate, \ArrayAccess, \Countable { diff --git a/src/Model/Entry.php b/src/Model/Entry.php index ea540f7..5d31796 100644 --- a/src/Model/Entry.php +++ b/src/Model/Entry.php @@ -950,7 +950,7 @@ public function getInterviewer() * @param $issue * @return Entry */ - public function setIssue($issue) + public function setIssue(string $issue) { $this->issue = $issue; return $this; @@ -1582,7 +1582,7 @@ public function getSubmitted() * @param $title * @return Entry */ - public function setTitle($title) + public function setTitle(string $title) { $this->title = $title; return $this; @@ -1690,7 +1690,7 @@ public function getVersion() * @param $volume * @return Entry */ - public function setVolume($volume) + public function setVolume(string $volume) { $this->volume = $volume; return $this;