From 4671169e8f589ed341ba26329e1186df8a2e0bae Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 16 Aug 2023 01:06:11 +0000 Subject: [PATCH 1/2] make protected instance filters and add getters --- composer.lock | 22 +++++++++++----------- src/Database/Database.php | 22 +++++++++++++++++++++- 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/composer.lock b/composer.lock index d42fcea85..207e66208 100644 --- a/composer.lock +++ b/composer.lock @@ -706,16 +706,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.16.0", + "version": "v4.17.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "19526a33fb561ef417e822e85f08a00db4059c17" + "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/19526a33fb561ef417e822e85f08a00db4059c17", - "reference": "19526a33fb561ef417e822e85f08a00db4059c17", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", + "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", "shasum": "" }, "require": { @@ -756,9 +756,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.16.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.17.1" }, - "time": "2023-06-25T14:52:30+00:00" + "time": "2023-08-13T19:53:39+00:00" }, { "name": "pcov/clobber", @@ -907,16 +907,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.10.27", + "version": "1.10.29", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "a9f44dcea06f59d1363b100bb29f297b311fa640" + "reference": "ee5d8f2d3977fb09e55603eee6fb53bdd76ee9c1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/a9f44dcea06f59d1363b100bb29f297b311fa640", - "reference": "a9f44dcea06f59d1363b100bb29f297b311fa640", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/ee5d8f2d3977fb09e55603eee6fb53bdd76ee9c1", + "reference": "ee5d8f2d3977fb09e55603eee6fb53bdd76ee9c1", "shasum": "" }, "require": { @@ -965,7 +965,7 @@ "type": "tidelift" } ], - "time": "2023-08-05T09:57:55+00:00" + "time": "2023-08-14T13:24:11+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/src/Database/Database.php b/src/Database/Database.php index 6524abee6..0314b3062 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -264,7 +264,7 @@ class Database /** * @var array */ - private array $instanceFilters = []; + protected array $instanceFilters = []; /** * @var array @@ -4749,6 +4749,26 @@ public function getAdapter(): Adapter return $this->adapter; } + /** + * Get Cache + * + * @return Cache + */ + public function getCache(): Cache + { + return $this->cache; + } + + /** + * Get instance filters + * + * @return array + */ + public function getInstanceFilters(): array + { + return $this->instanceFilters; + } + /** * @param Document $collection * @param array $queries From fd3f700e17824e2bafa3b34b4aea3373f3641959 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 24 Oct 2023 22:54:56 +1300 Subject: [PATCH 2/2] Update src/Database/Database.php --- src/Database/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database/Database.php b/src/Database/Database.php index 0314b3062..afd8a3e91 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -4762,7 +4762,7 @@ public function getCache(): Cache /** * Get instance filters * - * @return array + * @return array */ public function getInstanceFilters(): array {