Skip to content

Commit

Permalink
Fix psalm level 4
Browse files Browse the repository at this point in the history
  • Loading branch information
JonAtrapalo committed Nov 5, 2023
1 parent 99f8634 commit 3ef43d6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
findUnusedBaselineEntry="true"
findUnusedCode="true"
findUnusedBaselineEntry="false"
findUnusedCode="false"
>
<projectFiles>
<directory name="src" />
Expand Down
3 changes: 3 additions & 0 deletions src/Domain/BoardPlace/Board.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use IteratorAggregate;
use Traversable;

/**
* @template-implements IteratorAggregate<BoardPlace>
*/
final class Board implements IteratorAggregate
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Domain/BoardPlace/BoardPlace.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function free(): void

public function __toString(): string
{
return $this->placeNumber;
return (string) $this->placeNumber;
}


Expand Down
3 changes: 3 additions & 0 deletions src/Domain/Dog/DogCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use IteratorAggregate;
use Traversable;

/**
* @template-implements IteratorAggregate<Dog>
*/
final class DogCollection implements IteratorAggregate
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/Game/GameSolverCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected function configure(): void
protected function execute(InputInterface $input, OutputInterface $output): int
{
$gameSolver = new BruteForceSolver();
$game = $this->gameFinder->__invoke(new GameId(1));
$game = $this->gameFinder->__invoke(new GameId('1'));
$this->explainRules($game, $output);

try {
Expand Down

0 comments on commit 3ef43d6

Please sign in to comment.