mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Fixed PHPstan issue
This commit is contained in:
parent
6b06ce9ac3
commit
d7e7c9797f
1 changed files with 9 additions and 0 deletions
|
@ -36,6 +36,15 @@ class UTCDateTimeType extends DateTimeType
|
||||||
{
|
{
|
||||||
private static ?DateTimeZone $utc_timezone = null;
|
private static ?DateTimeZone $utc_timezone = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @param T $value
|
||||||
|
*
|
||||||
|
* @return (T is null ? null : string)
|
||||||
|
*
|
||||||
|
* @template T
|
||||||
|
*/
|
||||||
public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string
|
public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string
|
||||||
{
|
{
|
||||||
if (!self::$utc_timezone) {
|
if (!self::$utc_timezone) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue