Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Pascal

Using null as an array offset is admin-columns/classes/RequestHandlerFactory.php

Code actuel :

private function get_request_handler(): ?RequestHandler
{
$action = $this->request->get('action') ?: $this->request->get('ac_action');
return $this->request_handlers[$action] ?? null;
}

Erreur

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /Users/xxxx/zzzzz/xxxx/app/public/qqq/plugins/admin-columns-pro/admin-columns/classes/RequestHandlerFactory.php on line 38

Correctif:

private function get_request_handler(): ?RequestHandler
{
$action = $this->request->get('action') ?: $this->request->get('ac_action');
if (!is_string($action) || $action === '') {return null;}
if (!is_array($this->request_handlers)) {return null;}
$handler = $this->request_handlers[$action] ?? null;
return $handler instanceof RequestHandler ? $handler : null;
}
1 week, 2 days ago
Tobias Schutter
Developer

Hi Pascal, thanks for reporting this to us! We will fix this in the next release v7.0.12.

1 week, 1 day ago

You must be logged in to reply to this topic.