for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Riesenia\Pohoda\Common\OptionsResolver\Normalizers;
class Booleans extends AbstractNormalizer
{
public function normalize(mixed $options, mixed $value): string
if ($this->nullable && empty($value) && !\is_bool($value)) {
return '';
}
return !$value || \is_string($value) && 'false' === \strtolower($value) ? 'false' : 'true';