mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-10-04 02:02:08 +02:00
Merge pull request #462 from rafaelstz/patch-2
Composer > Update lock based in the PHP version
This commit is contained in:
@@ -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
|
// 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.
|
// 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,7 @@
|
|||||||
"phpunit/phpunit": "^9",
|
"phpunit/phpunit": "^9",
|
||||||
"squizlabs/php_codesniffer": "^3",
|
"squizlabs/php_codesniffer": "^3",
|
||||||
"vimeo/psalm": "^4",
|
"vimeo/psalm": "^4",
|
||||||
"psalm/plugin-phpunit": "*",
|
"psalm/plugin-phpunit": "*"
|
||||||
"rector/rector": "*"
|
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": ["Behavioral", "Creational", "Structural", "More"]
|
"classmap": ["Behavioral", "Creational", "Structural", "More"]
|
||||||
|
3509
composer.lock
generated
3509
composer.lock
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user