toSeconds is not static (but should be)

see here
https://github.com/herrera-io/php-doctrine-dateinterval/blob/master/src/lib/Herrera/Doctrine/DBAL/Types/DateIntervalType.php#L29