Skip to content

Commit

Permalink
Fix prop init
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrimaud committed Feb 17, 2021
1 parent 9208497 commit b7b30e6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/SectionCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ class SectionCollection
*/
private array $items;

public function __construct()
{
$this->items = [];
}

/**
* @param Section $section
* @param string $type
* @param string $type
*/
public function add(Section $section, string $type): void
{
Expand All @@ -22,7 +27,7 @@ public function add(Section $section, string $type): void

/**
* @param string|null $type
* @param int|null $key
* @param int|null $key
*
* @return array|mixed
*/
Expand Down

0 comments on commit b7b30e6

Please sign in to comment.