Change typehint callback to callable
authorJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2018 09:02:48 +0000 (10:02 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sat, 1 Dec 2018 09:02:48 +0000 (10:02 +0100)
Found by PHPStan.

Change-Id: I77877a18131bd69996bad07f2ee1c5f3ba3ba2e7

includes/libs/objectcache/BagOStuff.php
includes/libs/rdbms/database/Database.php
includes/parser/ParserOptions.php

index c6bcc7a..bc5ea46 100644 (file)
@@ -64,7 +64,7 @@ abstract class BagOStuff implements IExpiringStore, LoggerAwareInterface {
        protected $keyspace = 'local';
        /** @var LoggerInterface */
        protected $logger;
-       /** @var callback|null */
+       /** @var callable|null */
        protected $asyncHandler;
        /** @var int Seconds */
        protected $syncTimeout;
index 2c40c72..f151d85 100644 (file)
@@ -97,9 +97,9 @@ abstract class Database implements IDatabase, IMaintainableDatabase, LoggerAware
        protected $connLogger;
        /** @var LoggerInterface */
        protected $queryLogger;
-       /** @var callback Error logging callback */
+       /** @var callable Error logging callback */
        protected $errorLogger;
-       /** @var callback Deprecation logging callback */
+       /** @var callable Deprecation logging callback */
        protected $deprecationLogger;
 
        /** @var resource|null Database connection */
index de67b84..032d481 100644 (file)
@@ -57,7 +57,7 @@ class ParserOptions {
 
        /**
         * Lazy-loaded options
-        * @var callback[]
+        * @var callable[]
         */
        private static $lazyOptions = [
                'dateformat' => [ __CLASS__, 'initDateFormat' ],