for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Wandu\Caster\Caster;
use Wandu\Caster\CasterInterface;
class FloatCaster implements CasterInterface
{
/**
* {@inheritdoc}
*/
public function cast($value)
if ($value === null) {
return (double) 0;
}
return (double) $value;