Skip to content
Snippets Groups Projects
Commit 311863e7 authored by Steven Ayers's avatar Steven Ayers
Browse files

Issue #3474917: Trying to access array offset on value of type null

parent a97f1706
No related branches found
No related tags found
1 merge request!9Issue #3474917 by bluegeek9: Trying to access array offset on value of type null
Pipeline #285356 failed
......@@ -438,7 +438,7 @@ class KnowledgeStatistics implements KnowledgeStatisticsInterface {
protected function doStateCountAction($count, $citation, $entity) {
$confidence = $entity->get('moderation_state')->value;
$transition = $this->getNextState($confidence);
$next_state = $transition['to'];
$next_state = $transition['to'] ?? NULL;
if (is_null($next_state)) {
return;
}
......@@ -449,7 +449,7 @@ class KnowledgeStatistics implements KnowledgeStatisticsInterface {
if (is_null($config)) {
return;
}
$action = $config['action'];
$action = $config['action'] ?? 'none';
if ($action == 'none') {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment