for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mvkasatkin\typecast\type;
class TypeBinary extends Type
{
/**
* @param $value
*
* @return string|null
*/
public function cast($value)
return $value === null ? $this->default : (binary)$value;
}