X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/b77ab6f3af996f924bd2ddbac6e88f61a8bf6cf9..refs/pull/5676/head:/app/Entities/Controllers/BookController.php diff --git a/app/Entities/Controllers/BookController.php b/app/Entities/Controllers/BookController.php index a1c586f47..b1685081a 100644 --- a/app/Entities/Controllers/BookController.php +++ b/app/Entities/Controllers/BookController.php @@ -70,7 +70,7 @@ class BookController extends Controller /** * Show the form for creating a new book. */ - public function create(string $shelfSlug = null) + public function create(?string $shelfSlug = null) { $this->checkPermission('book-create-all'); @@ -93,7 +93,7 @@ class BookController extends Controller * @throws ImageUploadException * @throws ValidationException */ - public function store(Request $request, string $shelfSlug = null) + public function store(Request $request, ?string $shelfSlug = null) { $this->checkPermission('book-create-all'); $validated = $this->validate($request, [