mirror of
https://github.com/jupeter/clean-code-php.git
synced 2025-09-29 07:29:02 +02:00
fix example in LSP section
This commit is contained in:
@@ -1673,7 +1673,7 @@ class Square extends Rectangle
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderLargeRectangles(Rectangle $rectangles): void
|
function renderLargeRectangles(array $rectangles): void
|
||||||
{
|
{
|
||||||
foreach ($rectangles as $rectangle) {
|
foreach ($rectangles as $rectangle) {
|
||||||
$rectangle->setWidth(4);
|
$rectangle->setWidth(4);
|
||||||
@@ -1736,7 +1736,7 @@ class Square extends Shape
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderLargeRectangles(Shape $rectangles): void
|
function renderLargeRectangles(array $rectangles): void
|
||||||
{
|
{
|
||||||
foreach ($rectangles as $rectangle) {
|
foreach ($rectangles as $rectangle) {
|
||||||
if ($rectangle instanceof Square) {
|
if ($rectangle instanceof Square) {
|
||||||
|
Reference in New Issue
Block a user