for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace As3\Modlr\DataTypes\Types;
/**
* The array data type converter.
*
* @author Jacob Bare <[email protected]>
*/
class ArrayType implements TypeInterface
{
* {@inheritDoc}
public function convertToModlrValue($value)
if (empty($value)) {
return [];
}
(Array) $value;
return array_values($value);