Skip to content

Commit 95f9f68

Browse files
author
Tomáš Votruba
authored
Merge pull request #56 from Zayon/patch-1
LSP good example correction
2 parents 4be1dee + 6e01046 commit 95f9f68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ renderLargeRectangles($rectangles);
12011201
**Good:**
12021202
```php
12031203
abstract class Shape {
1204-
private $width, $height;
1204+
protected $width, $height;
12051205

12061206
abstract public function getArea();
12071207

0 commit comments

Comments
 (0)