mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-25 00:27:32 +01:00
Fixed PHPstan issue
This commit is contained in:
@@ -36,6 +36,15 @@ class UTCDateTimeType extends DateTimeType
|
||||
{
|
||||
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
|
||||
{
|
||||
if (!self::$utc_timezone) {
|
||||
|
||||
Reference in New Issue
Block a user