1
0
mirror of https://github.com/DesignPatternsPHP/DesignPatternsPHP.git synced 2025-06-24 10:13:17 +02:00

Psalm > Fix Expected Argument

This commit is contained in:
Rafael Corrêa Gomes
2021-10-15 13:00:17 -04:00
parent ca02a83dbb
commit 7cc012c990
2 changed files with 4 additions and 4 deletions
Structural/Flyweight

@ -18,11 +18,11 @@ class Character implements Text
{
}
public function render(string $font): string
public function render(string $extrinsicState): string
{
// Clients supply the context-dependent information that the flyweight needs to draw itself
// For flyweights representing characters, extrinsic state usually contains e.g. the font.
return sprintf('Character %s with font %s', $this->name, $font);
return sprintf('Character %s with font %s', $this->name, $extrinsicState);
}
}

@ -8,8 +8,8 @@ class Word implements Text
{
}
public function render(string $font): string
public function render(string $extrinsicState): string
{
return sprintf('Word %s with font %s', $this->name, $font);
return sprintf('Word %s with font %s', $this->name, $extrinsicState);
}
}