8000 fix: menubar not ready · SRWieZ/fork-nativephp-laravel@4c89091 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c89091

Browse files
committed
fix: menubar not ready
1 parent 345b37a commit 4c89091

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MenuBar/PendingCreateMenuBar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ class PendingCreateMenuBar extends MenuBar
99
public function __destruct()
1010
{
1111
if (! $this->created) {
12-
$this->create();
12+
$this->now();
1313
}
1414
}
1515

16-
public function create(): void
16+
public function now(): void
1717
{
1818
$this->client->post('menu-bar/create', $this->toArray());
1919
$this->created = true;

0 commit comments

Comments
 (0)
0