for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Sirius\Filtration\Filter;
class Integer extends AbstractFilter
{
public function filterSingle($value, string $valueIdentifier = null)
if (is_object($value)) {
return $value;
}
if ($value == 0) {
return 0;
$value = floatval($value);
return (int) $value;