]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Controllers/PageController.php
PHP: Addressed 8.4 deprecations within app itself
[bookstack] / app / Entities / Controllers / PageController.php
index eab53bb2510c361a0b849eee542f2eb8214326bc..230a84721f80ee8793dd325f9c082c5c3ca2045c 100644 (file)
@@ -41,7 +41,7 @@ class PageController extends Controller
      *
      * @throws Throwable
      */
-    public function create(string $bookSlug, string $chapterSlug = null)
+    public function create(string $bookSlug, ?string $chapterSlug = null)
     {
         if ($chapterSlug) {
             $parent = $this->entityQueries->chapters->findVisibleBySlugsOrFail($bookSlug, $chapterSlug);
@@ -69,7 +69,7 @@ class PageController extends Controller
      *
      * @throws ValidationException
      */
-    public function createAsGuest(Request $request, string $bookSlug, string $chapterSlug = null)
+    public function createAsGuest(Request $request, string $bookSlug, ?string $chapterSlug = null)
     {
         $this->validate($request, [
             'name' => ['required', 'string', 'max:255'],