<?php var_export(mixed $value, bool $return = false): ?string
<?php if (is_scalar($value) || $value === null) { return new self(sprintf( 'Could not convert PHP value %s to type %s. Expected one of the following types: %s', var_export($value, true), $toType, implode(', ', $possibleTypes) ), 0, $previous);