(Grav GitSync) Automatic Commit from smokephil

This commit is contained in:
smokephil 2025-01-17 09:13:21 +01:00 committed by GitSync
parent 88e07926d9
commit 9d9feba04b
144 changed files with 7311 additions and 5467 deletions

View file

@ -62,7 +62,7 @@ class AdminController extends AdminBaseController
* @param array|null $post
* @return void
*/
public function initialize(Grav $grav = null, $view = null, $task = null, $route = null, $post = null)
public function initialize(?Grav $grav = null, $view = null, $task = null, $route = null, $post = null)
{
$this->grav = $grav;
$this->admin = $this->grav['admin'];
@ -2717,7 +2717,7 @@ class AdminController extends AdminBaseController
* @param PageInterface|null $page
* @return Media|null
*/
public function getMedia(PageInterface $page = null)
public function getMedia(?PageInterface $page = null)
{
$page = $page ?? $this->admin->page($this->route);
if (!$page) {