mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-08 17:34:32 +02:00
Fixed some deprecations.
This commit is contained in:
parent
4fa8eef1bf
commit
5fd608f42a
59 changed files with 202 additions and 165 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue