From: Daimona Eaytoy Date: Wed, 11 Sep 2019 08:57:15 +0000 (+0200) Subject: libs: Declare dynamic properties and improve doc types X-Git-Tag: 1.34.0-rc.0~229^2~2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=ffec2d6ef7f7db3da7f922511d43f21355d5f868;p=lhc%2Fweb%2Fwiklou.git libs: Declare dynamic properties and improve doc types Change-Id: I5cf39d3dde5990e6a0fde91b98cf692e39a3a431 --- diff --git a/includes/libs/MemoizedCallable.php b/includes/libs/MemoizedCallable.php index 5e7485c279..f5112295fc 100644 --- a/includes/libs/MemoizedCallable.php +++ b/includes/libs/MemoizedCallable.php @@ -48,6 +48,9 @@ class MemoizedCallable { /** @var string Unique name of callable; used for cache keys. */ private $callableName; + /** @var int */ + private $ttl; + /** * @throws InvalidArgumentException if $callable is not a callable. * @param callable $callable Function or method to memoize. diff --git a/includes/libs/composer/ComposerInstalled.php b/includes/libs/composer/ComposerInstalled.php index 54d43d37cd..b036f05c05 100644 --- a/includes/libs/composer/ComposerInstalled.php +++ b/includes/libs/composer/ComposerInstalled.php @@ -7,6 +7,10 @@ * @since 1.27 */ class ComposerInstalled { + /** + * @var array[] + */ + private $contents; /** * @param string $location @@ -18,7 +22,7 @@ class ComposerInstalled { /** * Dependencies currently installed according to installed.json * - * @return array + * @return array[] */ public function getInstalledDependencies() { $deps = []; diff --git a/includes/libs/composer/ComposerJson.php b/includes/libs/composer/ComposerJson.php index 62231a89b6..f92759b1a0 100644 --- a/includes/libs/composer/ComposerJson.php +++ b/includes/libs/composer/ComposerJson.php @@ -7,6 +7,10 @@ * @since 1.25 */ class ComposerJson { + /** + * @var array[] + */ + private $contents; /** * @param string $location @@ -18,7 +22,7 @@ class ComposerJson { /** * Dependencies as specified by composer.json * - * @return array + * @return string[] */ public function getRequiredDependencies() { $deps = []; diff --git a/includes/libs/composer/ComposerLock.php b/includes/libs/composer/ComposerLock.php index c5b5f0040d..7f6b875963 100644 --- a/includes/libs/composer/ComposerLock.php +++ b/includes/libs/composer/ComposerLock.php @@ -7,6 +7,10 @@ * @since 1.25 */ class ComposerLock { + /** + * @var array[] + */ + private $contents; /** * @param string $location @@ -18,7 +22,7 @@ class ComposerLock { /** * Dependencies currently installed according to composer.lock * - * @return array + * @return array[] */ public function getInstalledDependencies() { $deps = []; diff --git a/includes/libs/mime/XmlTypeCheck.php b/includes/libs/mime/XmlTypeCheck.php index 9d66326744..16cd5ca9ca 100644 --- a/includes/libs/mime/XmlTypeCheck.php +++ b/includes/libs/mime/XmlTypeCheck.php @@ -68,6 +68,9 @@ class XmlTypeCheck { */ protected $stackDepth = 0; + /** @var callable|null */ + protected $filterCallback; + /** * @var array Additional parsing options */