From: Jakub Vrana Date: Sat, 1 Dec 2018 09:02:48 +0000 (+0100) Subject: Change typehint callback to callable X-Git-Tag: 1.34.0-rc.0~3389^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=3fc3b9e5785556ed9576f3f3f4146795d73f06f4;p=lhc%2Fweb%2Fwiklou.git Change typehint callback to callable Found by PHPStan. Change-Id: I77877a18131bd69996bad07f2ee1c5f3ba3ba2e7 --- diff --git a/includes/libs/objectcache/BagOStuff.php b/includes/libs/objectcache/BagOStuff.php index c6bcc7a841..bc5ea461c0 100644 --- a/includes/libs/objectcache/BagOStuff.php +++ b/includes/libs/objectcache/BagOStuff.php @@ -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; diff --git a/includes/libs/rdbms/database/Database.php b/includes/libs/rdbms/database/Database.php index 2c40c72bc1..f151d85737 100644 --- a/includes/libs/rdbms/database/Database.php +++ b/includes/libs/rdbms/database/Database.php @@ -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 */ diff --git a/includes/parser/ParserOptions.php b/includes/parser/ParserOptions.php index de67b84740..032d481faa 100644 --- a/includes/parser/ParserOptions.php +++ b/includes/parser/ParserOptions.php @@ -57,7 +57,7 @@ class ParserOptions { /** * Lazy-loaded options - * @var callback[] + * @var callable[] */ private static $lazyOptions = [ 'dateformat' => [ __CLASS__, 'initDateFormat' ],