Skip to content

Commit 1bad5f9

Browse files
authored
Merge pull request #9 from ahferriz/bug-countable
Fixed Countable::count return type
2 parents 4b5faf3 + a9b9421 commit 1bad5f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Menu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function all()
160160
*
161161
* @return int
162162
*/
163-
public function count()
163+
public function count(): int
164164
{
165165
return count($this->menu);
166166
}

src/MenuBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ public function divider()
559559
*
560560
* @return int
561561
*/
562-
public function count()
562+
public function count(): int
563563
{
564564
return count($this->items);
565565
}

0 commit comments

Comments
 (0)