diff --git a/src/View.php b/src/View.php index 2af899b..477383d 100644 --- a/src/View.php +++ b/src/View.php @@ -149,11 +149,11 @@ public function __construct(string|null $view = null, array $data = []) /** * Set view file path. * - * @param string|null $view Name of the view file. + * @param string $view Name of the view file. * * @return $this */ - public function file(string|null $view = null): self + public function file(string $view): self { $viewFilePath = self::getFilePath($view);