for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MetaHydrator\Parser;
class SimpleArrayParser extends AbstractParser
{
/**
* @param array[] $rawValue
* @return array[]|null
* @throws \MetaHydrator\Exception\ParsingException
*/
public function parse($rawValue)
if ($rawValue === null) {
return null;
}
if (is_array($rawValue) === false) {
$this->throw();
return $rawValue;