mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-27 00:06:32 +01:00
PHP 8.4 fixes - Implicitly nullable parameter declarations deprecated
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user