Verified Commit 5d94808b authored by Bastien Durel's avatar Bastien Durel
Browse files

add return types

parent 2c17acb5
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -11,13 +11,12 @@ class DbalLogger extends Logger\DbalLogger {
    
    function __construct(LoggerInterface $logger = null, Stopwatch $stopwatch = null) {
        parent::__construct($logger, $stopwatch);
        error_log("construct");
    }

    /**
     * {@inheritdoc}
     */
    public function startQuery($sql, array $params = null, array $types = null)
    public function startQuery($sql, ?array $params = null, ?array $types = null) : void
    {
        if (null !== $this->logger) {
            if (null === $this->stopwatch)
@@ -29,7 +28,7 @@ class DbalLogger extends Logger\DbalLogger {
    /**
     * {@inheritdoc}
     */
    public function stopQuery()
    public function stopQuery(): void
    {
        if (null !== $this->logger) {
            if (null === $this->stopwatch) {