for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace drupol\valuewrapper\Type;
use Exception;
/**
* Class ArrayType.
*/
class ArrayType extends TypeValue
{
* ArrayType constructor.
*
* @param array<mixed> $value
public function __construct(array $value)
parent::__construct($value);
}
* {@inheritdoc}
public function hash(): string
if (false === $string = json_encode($this->value())) {
throw new Exception('Unable to encode the value.');
return $this->doHash($string);