for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace LAG\AdminBundle\Field;
use Symfony\Component\OptionsResolver\OptionsResolver;
class DateField extends AbstractField implements ApplicationAwareInterface
LAG\AdminBundle\Field\ApplicationAwareInterface
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
class DateField extends AbstractField implements /** @scrutinizer ignore-deprecated */ ApplicationAwareInterface
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.
{
use ApplicationAware;
public function configureOptions(OptionsResolver $resolver): void
$resolver->setDefaults([
'format' => '$this->applicationConfiguration->getDateFormat()',
'template' => '@LAGAdmin/fields/date.html.twig',
]);
}
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.