Skip to content

Commit e4cb855

Browse files
committed
BUGFIX: Do not use PHP 7.3 features
1 parent b50de01 commit e4cb855

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Command/SearchCommandController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function fulltextCommand(string $searchWord, string $path = '/', ?string
104104
*/
105105
public function viewNodeCommand(string $identifier, ?string $dimensions = null, string $field = ''): void
106106
{
107-
if ($dimensions !== null && is_array(json_decode($dimensions, true, 512, JSON_THROW_ON_ERROR)) === false) {
107+
if ($dimensions !== null && is_array(json_decode($dimensions)) === false) {
108108
$this->outputLine('<error>Error: </error>The Dimensions must be given as a JSON array like \'{"language":["de"]}\'');
109109
$this->sendAndExit(1);
110110
}

0 commit comments

Comments
 (0)