diff --git a/src/Dompurify/DompurifyCliConfig.php b/src/Dompurify/DompurifyCliConfig.php index a17dfe1..22c206b 100644 --- a/src/Dompurify/DompurifyCliConfig.php +++ b/src/Dompurify/DompurifyCliConfig.php @@ -25,13 +25,13 @@ public function getClass(): string /** * Must be implemented for Laravel config cache */ - public static function __set_state(array $state_array): static - { - return new static(...array_intersect_key($state_array, [ + public static function __set_state(array $state_array): static + { + return new static(...array_intersect_key($state_array, [ 'node' => true, 'npm' => true, 'binary' => true, 'tempFolder' => true, ])); - } + } } diff --git a/src/Dompurify/DompurifyServiceConfig.php b/src/Dompurify/DompurifyServiceConfig.php index 4931d15..522a1ee 100644 --- a/src/Dompurify/DompurifyServiceConfig.php +++ b/src/Dompurify/DompurifyServiceConfig.php @@ -28,13 +28,13 @@ public function getClass(): string * Must be implemented for Laravel config cache */ public static function __set_state(array $state_array): static - { - return new static(...array_intersect_key($state_array, [ + { + return new static(...array_intersect_key($state_array, [ 'node' => true, 'npm' => true, 'host' => true, 'port' => true, 'binary' => true, ])); - } + } }