Fixed some deprecations.

This commit is contained in:
Jan Böhmer 2022-08-14 19:09:07 +02:00
parent 4fa8eef1bf
commit 5fd608f42a
59 changed files with 202 additions and 165 deletions

View file

@ -55,7 +55,12 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
*/
class LocaleDateTimeColumn extends AbstractColumn
{
public function normalize($value)
/**
* @param $value
* @return bool|mixed|string
* @throws \Exception
*/
public function normalize($value): string
{
if (null === $value) {
return $this->options['nullValue'];
@ -81,7 +86,7 @@ class LocaleDateTimeColumn extends AbstractColumn
return $formatter->format($value->getTimestamp());
}
protected function configureOptions(OptionsResolver $resolver)
protected function configureOptions(OptionsResolver $resolver): self
{
parent::configureOptions($resolver);