Skip to content
Snippets Groups Projects
Commit c08ba9f7 authored by Rich Lott / Artful Robot's avatar Rich Lott / Artful Robot
Browse files

Fix php8.1 deprecated notice

parent 240efb25
Branches
Tags
No related merge requests found
......@@ -287,7 +287,7 @@ abstract class Type {
} else {
$getApi->addWhere('set_name', '=', $setIdentifier);
}
$config = json_decode(($getApi->execute()->first() ?? [])['config'] ?? NULL, TRUE) ?? [];
$config = json_decode(($getApi->execute()->first() ?? [])['config'] ?? '[]', TRUE) ?? [];
// Apply and limit keys to the defaults.
$defaults = $this->getConfigSets()[$schemaName]['defaults'] ?? [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment