diff --git a/src/App.php b/src/App.php index 34e26b97ff..b0b0c09e5b 100644 --- a/src/App.php +++ b/src/App.php @@ -475,7 +475,7 @@ public function normalizeClassNameApp($name, $prefix = ''): ?string public function add($seed, $region = null) { if (!$this->layout) { - throw new Exception(['If you use $app->add() you should first call $app->setLayout()']); + throw new Exception(['If you use $app->add() you should first call $app->initLayout()']); } return $this->layout->add($seed, $region);