From d60858cd8fcccabf605aeac458b8d2943bc74520 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Tue, 17 Mar 2026 10:37:49 +0530 Subject: [PATCH] fix phpstan --- composer.lock | 8 +- phpstan-baseline.neon | 810 +++++++++++++++++++++++++++++++++++++----- 2 files changed, 727 insertions(+), 91 deletions(-) diff --git a/composer.lock b/composer.lock index 9ae5187c96..a0f74125ce 100644 --- a/composer.lock +++ b/composer.lock @@ -4307,12 +4307,12 @@ "source": { "type": "git", "url": "https://github.com/utopia-php/http.git", - "reference": "dc674196b7181067cd798470d1db84dcb5a140ec" + "reference": "fbcf5a3ca934f59fa4c4929f003ba0d563cc1f02" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/http/zipball/dc674196b7181067cd798470d1db84dcb5a140ec", - "reference": "dc674196b7181067cd798470d1db84dcb5a140ec", + "url": "https://api.github.com/repos/utopia-php/http/zipball/fbcf5a3ca934f59fa4c4929f003ba0d563cc1f02", + "reference": "fbcf5a3ca934f59fa4c4929f003ba0d563cc1f02", "shasum": "" }, "require": { @@ -4352,7 +4352,7 @@ "issues": "https://github.com/utopia-php/http/issues", "source": "https://github.com/utopia-php/http/tree/feat/coroutines-option" }, - "time": "2026-03-17T04:57:28+00:00" + "time": "2026-03-17T05:01:57+00:00" }, { "name": "utopia-php/image", diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 0219836405..86d007432d 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -72,12 +72,6 @@ parameters: count: 1 path: app/cli.php - - - message: '#^Parameter \#1 \$name of method Utopia\\DI\\Injection\:\:inject\(\) expects string, mixed given\.$#' - identifier: argument.type - count: 1 - path: app/cli.php - - message: '#^Parameter \#1 \$pool of class Utopia\\Cache\\Adapter\\Pool constructor expects Utopia\\Pools\\Pool\, mixed given\.$#' identifier: argument.type @@ -109,7 +103,7 @@ parameters: path: app/cli.php - - message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, string\|false given\.$#' + message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string, string\|false given\.$#' identifier: argument.type count: 1 path: app/cli.php @@ -126,12 +120,6 @@ parameters: count: 1 path: app/cli.php - - - message: '#^Variable \$dbForPlatform might not be defined\.$#' - identifier: variable.undefined - count: 1 - path: app/cli.php - - message: '#^Cannot access offset ''files'' on mixed\.$#' identifier: offsetAccess.nonOffsetAccessible @@ -2070,6 +2058,12 @@ parameters: count: 18 path: app/controllers/api/messaging.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: app/controllers/api/messaging.php + - message: '#^Parameter \#2 \$default of method Utopia\\Locale\\Locale\:\:getText\(\) expects string\|null, false given\.$#' identifier: argument.type @@ -2868,6 +2862,12 @@ parameters: count: 1 path: app/controllers/api/users.php + - + message: '#^Parameter \#1 \$array of function array_unique expects an array of values castable to string, array given\.$#' + identifier: argument.type + count: 1 + path: app/controllers/api/users.php + - message: '#^Parameter \#1 \$dictionary of class Appwrite\\Auth\\Validator\\PasswordDictionary constructor expects array, mixed given\.$#' identifier: argument.type @@ -3487,7 +3487,7 @@ parameters: path: app/controllers/general.php - - message: '#^Parameter \#1 \$value of function intval expects array\|bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function intval expects array\|bool\|float\|GMP\|int\|resource\|SimpleXMLElement\|string\|null, mixed given\.$#' identifier: argument.type count: 1 path: app/controllers/general.php @@ -3498,6 +3498,18 @@ parameters: count: 2 path: app/controllers/general.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: app/controllers/general.php + + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 3 + path: app/controllers/general.php + - message: '#^Parameter \#2 \$default of method Utopia\\DSN\\DSN\:\:getParam\(\) expects string, float given\.$#' identifier: argument.type @@ -3505,7 +3517,7 @@ parameters: path: app/controllers/general.php - - message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, string\|false given\.$#' + message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string, string\|false given\.$#' identifier: argument.type count: 1 path: app/controllers/general.php @@ -3666,6 +3678,12 @@ parameters: count: 1 path: app/controllers/general.php + - + message: '#^Unknown parameter \$override in call to method Utopia\\Http\\Response\:\:addHeader\(\)\.$#' + identifier: argument.unknown + count: 1 + path: app/controllers/general.php + - message: '#^Variable \$body on left side of \?\? always exists and is not nullable\.$#' identifier: nullCoalesce.variable @@ -3966,6 +3984,12 @@ parameters: count: 1 path: app/controllers/shared/api.php + - + message: '#^Parameter \#1 \$array of function array_intersect expects an array of values castable to string, array\ given\.$#' + identifier: argument.type + count: 1 + path: app/controllers/shared/api.php + - message: '#^Parameter \#1 \$array of function array_shift expects array, mixed given\.$#' identifier: argument.type @@ -4062,6 +4086,12 @@ parameters: count: 2 path: app/controllers/shared/api.php + - + message: '#^Parameter \#2 \$arrays of function array_intersect expects an array of values castable to string, array\ given\.$#' + identifier: argument.type + count: 1 + path: app/controllers/shared/api.php + - message: '#^Parameter \#2 \$data of method Utopia\\Cache\\Cache\:\:save\(\) expects array\\|string, mixed given\.$#' identifier: argument.type @@ -4278,6 +4308,12 @@ parameters: count: 1 path: app/controllers/web/home.php + - + message: '#^Anonymous function has an unused use \$register\.$#' + identifier: closure.unusedUse + count: 1 + path: app/http.php + - message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' identifier: foreach.nonIterable @@ -4446,6 +4482,12 @@ parameters: count: 1 path: app/http.php + - + message: '#^Cannot call method end\(\) on mixed\.$#' + identifier: method.nonObject + count: 1 + path: app/http.php + - message: '#^Cannot call method get\(\) on mixed\.$#' identifier: method.nonObject @@ -4464,12 +4506,6 @@ parameters: count: 1 path: app/http.php - - - message: '#^Cannot call method getResource\(\) on mixed\.$#' - identifier: method.nonObject - count: 1 - path: app/http.php - - message: '#^Cannot call method getRoles\(\) on mixed\.$#' identifier: method.nonObject @@ -4482,12 +4518,30 @@ parameters: count: 1 path: app/http.php + - + message: '#^Cannot call method getSwooleRequest\(\) on mixed\.$#' + identifier: method.nonObject + count: 1 + path: app/http.php + + - + message: '#^Cannot call method getSwooleResponse\(\) on mixed\.$#' + identifier: method.nonObject + count: 2 + path: app/http.php + - message: '#^Cannot call method isEmpty\(\) on mixed\.$#' identifier: method.nonObject count: 1 path: app/http.php + - + message: '#^Cannot call method set\(\) on mixed\.$#' + identifier: method.nonObject + count: 7 + path: app/http.php + - message: '#^Cannot call method setAction\(\) on mixed\.$#' identifier: method.nonObject @@ -4524,6 +4578,12 @@ parameters: count: 1 path: app/http.php + - + message: '#^Cannot call method setStatusCode\(\) on mixed\.$#' + identifier: method.nonObject + count: 1 + path: app/http.php + - message: '#^Cannot call method setType\(\) on mixed\.$#' identifier: method.nonObject @@ -4596,12 +4656,6 @@ parameters: count: 1 path: app/http.php - - - message: '#^Parameter \#1 \$content of method Swoole\\Http\\Response\:\:end\(\) expects string\|null, string\|false given\.$#' - identifier: argument.type - count: 1 - path: app/http.php - - message: '#^Parameter \#1 \$haystack of function str_ends_with expects string, mixed given\.$#' identifier: argument.type @@ -4644,6 +4698,18 @@ parameters: count: 1 path: app/http.php + - + message: '#^Parameter \#1 \$request of class Appwrite\\Utopia\\Request constructor expects Swoole\\Http\\Request, mixed given\.$#' + identifier: argument.type + count: 1 + path: app/http.php + + - + message: '#^Parameter \#1 \$response of class Appwrite\\Utopia\\Response constructor expects Swoole\\Http\\Response, mixed given\.$#' + identifier: argument.type + count: 1 + path: app/http.php + - message: '#^Parameter \#1 \$string of function ltrim expects string, string\|false given\.$#' identifier: argument.type @@ -4681,15 +4747,15 @@ parameters: path: app/http.php - - message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, int given\.$#' + message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string, string\|false given\.$#' identifier: argument.type - count: 5 + count: 1 path: app/http.php - - message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, string\|false given\.$#' + message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, int given\.$#' identifier: argument.type - count: 1 + count: 5 path: app/http.php - @@ -4717,17 +4783,11 @@ parameters: path: app/http.php - - message: '#^Parameter \$port of class Swoole\\Http\\Server constructor expects int, string given\.$#' + message: '#^Parameter \$container of class Utopia\\Http\\Adapter\\Swoole\\HttpServer constructor expects Utopia\\DI\\Container\|null, mixed given\.$#' identifier: argument.type count: 1 path: app/http.php - - - message: '#^Variable \$database might not be defined\.$#' - identifier: variable.undefined - count: 4 - path: app/http.php - - message: '#^Variable \$register might not be defined\.$#' identifier: variable.undefined @@ -4848,6 +4908,18 @@ parameters: count: 2 path: app/init/database/filters.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 3 + path: app/init/database/filters.php + + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\, mixed\> given\.$#' + identifier: argument.type + count: 1 + path: app/init/database/filters.php + - message: '#^Parameter \#2 \$haystack of function in_array expects array, mixed given\.$#' identifier: argument.type @@ -5424,6 +5496,12 @@ parameters: count: 1 path: app/init/resources.php + - + message: '#^Parameter \#1 \$array of function array_unique expects an array of values castable to string, array given\.$#' + identifier: argument.type + count: 2 + path: app/init/resources.php + - message: '#^Parameter \#1 \$data of method Utopia\\Auth\\Store\:\:decode\(\) expects string, mixed given\.$#' identifier: argument.type @@ -6006,6 +6084,12 @@ parameters: count: 1 path: app/realtime.php + - + message: '#^Parameter \#1 \$parent of class Utopia\\DI\\Container constructor expects Psr\\Container\\ContainerInterface\|null, mixed given\.$#' + identifier: argument.type + count: 1 + path: app/realtime.php + - message: '#^Parameter \#1 \$pool of class Appwrite\\PubSub\\Adapter\\Pool constructor expects Utopia\\Pools\\Pool, mixed given\.$#' identifier: argument.type @@ -6079,15 +6163,15 @@ parameters: path: app/realtime.php - - message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, int given\.$#' + message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string, string\|false given\.$#' identifier: argument.type - count: 4 + count: 1 path: app/realtime.php - - message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, string\|false given\.$#' + message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, int given\.$#' identifier: argument.type - count: 1 + count: 4 path: app/realtime.php - @@ -6301,15 +6385,15 @@ parameters: path: app/worker.php - - message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, int given\.$#' + message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string, string\|false given\.$#' identifier: argument.type - count: 6 + count: 2 path: app/worker.php - - message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, string\|false given\.$#' + message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, int given\.$#' identifier: argument.type - count: 2 + count: 6 path: app/worker.php - @@ -6666,6 +6750,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Amazon.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Amazon.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Amazon\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -6774,6 +6864,12 @@ parameters: count: 4 path: src/Appwrite/Auth/OAuth2/Apple.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Apple.php + - message: '#^Parameter \#2 \$start of function mb_substr expects int, float\|int given\.$#' identifier: argument.type @@ -6894,6 +6990,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Auth0.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Auth/OAuth2/Auth0.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Auth0\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -6984,6 +7086,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Authentik.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Auth/OAuth2/Authentik.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Authentik\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -7050,6 +7158,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Autodesk.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Autodesk.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Autodesk\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -7140,6 +7254,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Bitbucket.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Bitbucket.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Bitbucket\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -7284,6 +7404,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Box.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Auth/OAuth2/Box.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Box\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -7362,6 +7488,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Dailymotion.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 3 + path: src/Appwrite/Auth/OAuth2/Dailymotion.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Dailymotion\:\:\$fields type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -7434,6 +7566,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Discord.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Auth/OAuth2/Discord.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Discord\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -7512,6 +7650,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Disqus.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Auth/OAuth2/Disqus.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Disqus\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -7734,6 +7878,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Facebook.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Facebook.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Facebook\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -7800,6 +7950,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Figma.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Figma.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Figma\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -7908,6 +8064,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Github.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Github.php + - message: '#^Parameter \#4 \$payload of method Appwrite\\Auth\\OAuth2\:\:request\(\) expects string, string\|false given\.$#' identifier: argument.type @@ -7992,6 +8154,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Gitlab.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Gitlab.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Gitlab\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -8058,6 +8226,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Google.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Google.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Google\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -8142,6 +8316,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Linkedin.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Linkedin.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Linkedin\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -8232,6 +8412,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Microsoft.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Auth/OAuth2/Microsoft.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Microsoft\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -8304,6 +8490,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Mock.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Mock.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Mock\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -8538,6 +8730,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Oidc.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Auth/OAuth2/Oidc.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Oidc\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -8646,6 +8844,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Okta.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Auth/OAuth2/Okta.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Okta\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -8748,6 +8952,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Paypal.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Paypal.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Paypal\:\:\$endpoint type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -8851,7 +9061,7 @@ parameters: path: src/Appwrite/Auth/OAuth2/Podio.php - - message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function strval expects bool\|float\|GMP\|int\|resource\|string\|null, mixed given\.$#' identifier: argument.type count: 1 path: src/Appwrite/Auth/OAuth2/Podio.php @@ -8940,6 +9150,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Salesforce.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Salesforce.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Salesforce\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -9030,6 +9246,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Slack.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Slack.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Slack\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -9096,6 +9318,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Spotify.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Spotify.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Spotify\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -9162,6 +9390,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Stripe.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Stripe.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Stripe\:\:\$grantType type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -9270,6 +9504,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Tradeshift.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Tradeshift.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Tradeshift\:\:\$apiDomain type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -9366,6 +9606,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Twitch.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Twitch.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Twitch\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -9510,6 +9756,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Yahoo.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Yahoo.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Yahoo\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -9648,6 +9900,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Yandex.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Yandex.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Yandex\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -9708,6 +9966,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Zoho.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Auth/OAuth2/Zoho.php + - message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' identifier: argument.type @@ -9786,6 +10050,12 @@ parameters: count: 1 path: src/Appwrite/Auth/OAuth2/Zoom.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Auth/OAuth2/Zoom.php + - message: '#^Property Appwrite\\Auth\\OAuth2\\Zoom\:\:\$scopes type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -10542,6 +10812,12 @@ parameters: count: 1 path: src/Appwrite/Docker/Compose/Service.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Docker/Compose/Service.php + - message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' identifier: argument.type @@ -10740,6 +11016,12 @@ parameters: count: 1 path: src/Appwrite/Event/Event.php + - + message: '#^Parameter \#1 \$array of function array_unique expects an array of values castable to string, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Event/Event.php + - message: '#^Parameter \#1 \$haystack of function str_contains expects string, mixed given\.$#' identifier: argument.type @@ -10752,6 +11034,12 @@ parameters: count: 3 path: src/Appwrite/Event/Event.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 11 + path: src/Appwrite/Event/Event.php + - message: '#^Parameter \#2 \$replace of function str_replace expects array\\|string, list given\.$#' identifier: argument.type @@ -11406,6 +11694,18 @@ parameters: count: 2 path: src/Appwrite/Functions/EventProcessor.php + - + message: '#^Parameter \#1 \$array of function array_unique expects an array of values castable to string, list given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Functions/EventProcessor.php + + - + message: '#^Parameter \#1 \$array of function array_unique expects an array of values castable to string, list\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Functions/EventProcessor.php + - message: '#^Parameter \#1 \$json of function json_decode expects string, mixed given\.$#' identifier: argument.type @@ -11562,6 +11862,18 @@ parameters: count: 1 path: src/Appwrite/GraphQL/Resolvers.php + - + message: '#^Method Utopia\\Http\\Http\:\:execute\(\) invoked with 3 parameters, 2 required\.$#' + identifier: arguments.count + count: 1 + path: src/Appwrite/GraphQL/Resolvers.php + + - + message: '#^Method Utopia\\Http\\Http\:\:getResource\(\) invoked with 2 parameters, 1 required\.$#' + identifier: arguments.count + count: 8 + path: src/Appwrite/GraphQL/Resolvers.php + - message: '#^Parameter \#1 \$route of method Utopia\\Http\\Http\:\:execute\(\) expects Utopia\\Http\\Route, Utopia\\Http\\Route\|null given\.$#' identifier: argument.type @@ -12132,6 +12444,12 @@ parameters: count: 1 path: src/Appwrite/GraphQL/Types/Mapper.php + - + message: '#^Parameter \#1 \$list of method Utopia\\Http\\Http\:\:getResources\(\) expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/GraphQL/Types/Mapper.php + - message: '#^Parameter \#1 \$rule of static method Appwrite\\GraphQL\\Types\\Mapper\:\:getObjectType\(\) expects array, mixed given\.$#' identifier: argument.type @@ -12558,6 +12876,12 @@ parameters: count: 1 path: src/Appwrite/Messaging/Adapter/Realtime.php + - + message: '#^Parameter \#1 \$array of function array_unique expects an array of values castable to string, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Messaging/Adapter/Realtime.php + - message: '#^Parameter \#1 \$compiled of static method Appwrite\\Utopia\\Database\\RuntimeQuery\:\:filter\(\) expects array, mixed given\.$#' identifier: argument.type @@ -13116,6 +13440,12 @@ parameters: count: 1 path: src/Appwrite/Migration/Version/V15.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Migration/Version/V15.php + - message: '#^Parameter \#2 \$callback of function array_reduce expects callable\(array, mixed\)\: array, Closure\(array, array\)\: non\-empty\-array given\.$#' identifier: argument.type @@ -14172,6 +14502,12 @@ parameters: count: 2 path: src/Appwrite/Migration/Version/V22.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Migration/Version/V22.php + - message: '#^Parameter \#2 \$collectionId of method Appwrite\\Migration\\Migration\:\:createAttributesFromCollection\(\) expects string, mixed given\.$#' identifier: argument.type @@ -14970,12 +15306,24 @@ parameters: count: 2 path: src/Appwrite/Platform/Installer/Server.php + - + message: '#^Class Utopia\\Http\\Http constructor invoked with 1 parameter, 2 required\.$#' + identifier: arguments.count + count: 1 + path: src/Appwrite/Platform/Installer/Server.php + - message: '#^Method Appwrite\\Platform\\Installer\\Server\:\:startDockerInstaller\(\) has parameter \$opts with no value type specified in iterable type array\.$#' identifier: missingType.iterableValue count: 1 path: src/Appwrite/Platform/Installer/Server.php + - + message: '#^Method Utopia\\Http\\Adapter\\Swoole\\Server@anonymous/src/Appwrite/Platform/Installer/Server\.php\:156\:\:getNativeServer\(\) should return Swoole\\Http\\Server but returns Swoole\\Coroutine\\Http\\Server\.$#' + identifier: return.type + count: 1 + path: src/Appwrite/Platform/Installer/Server.php + - message: '#^Parameter \#1 \$directory of method Utopia\\Http\\Files\:\:load\(\) expects string, mixed given\.$#' identifier: argument.type @@ -14994,6 +15342,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Installer/Server.php + - + message: '#^Parameter \#1 \$server of class Utopia\\Http\\Http constructor expects Utopia\\Http\\Adapter, string given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Installer/Server.php + - message: '#^Parameter \#1 \$value of method Appwrite\\Platform\\Installer\\Runtime\\Config\:\:setLockedDatabase\(\) expects string\|null, list\\|string given\.$#' identifier: argument.type @@ -15030,6 +15384,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Installer/Server.php + - + message: '#^Static call to instance method Utopia\\Http\\Http\:\:setResource\(\)\.$#' + identifier: method.staticCall + count: 4 + path: src/Appwrite/Platform/Installer/Server.php + - message: '#^Offset 1 on array\{0\: non\-falsy\-string, 1\: non\-empty\-string, 2\?\: numeric\-string\} on left side of \?\? always exists and is not nullable\.$#' identifier: nullCoalesce.offset @@ -16176,6 +16536,18 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Compute/Base.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Compute/Base.php + + - + message: '#^Parameter \#2 \$array of function implode expects array\, list\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Compute/Base.php + - message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, int given\.$#' identifier: argument.type @@ -16260,6 +16632,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Compute/Validator/Specification.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Compute/Validator/Specification.php + - message: '#^Parameter \#2 \$haystack of function in_array expects array, mixed given\.$#' identifier: argument.type @@ -16393,7 +16771,7 @@ parameters: path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Action.php - - message: '#^Parameter \#1 \$operator of static method Utopia\\Database\\Operator\:\:parseOperator\(\) expects array\, array given\.$#' + message: '#^Parameter \#1 \$operator of static method Utopia\\Database\\Operator\:\:parseOperator\(\) expects array\, array\ given\.$#' identifier: argument.type count: 1 path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Action.php @@ -16759,7 +17137,7 @@ parameters: path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Create.php - - message: '#^Parameter \#1 \$value of function floatval expects array\|bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function floatval expects array\|bool\|float\|GMP\|int\|resource\|SimpleXMLElement\|string\|null, mixed given\.$#' identifier: argument.type count: 2 path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Create.php @@ -16789,7 +17167,7 @@ parameters: path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php - - message: '#^Parameter \#1 \$value of function floatval expects array\|bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function floatval expects array\|bool\|float\|GMP\|int\|resource\|SimpleXMLElement\|string\|null, mixed given\.$#' identifier: argument.type count: 2 path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php @@ -16879,7 +17257,7 @@ parameters: path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Create.php - - message: '#^Parameter \#1 \$value of function intval expects array\|bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function intval expects array\|bool\|float\|GMP\|int\|resource\|SimpleXMLElement\|string\|null, mixed given\.$#' identifier: argument.type count: 2 path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Create.php @@ -16909,7 +17287,7 @@ parameters: path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php - - message: '#^Parameter \#1 \$value of function intval expects array\|bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function intval expects array\|bool\|float\|GMP\|int\|resource\|SimpleXMLElement\|string\|null, mixed given\.$#' identifier: argument.type count: 2 path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php @@ -17965,7 +18343,7 @@ parameters: path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php - - message: '#^Parameter \#1 \$input of class Utopia\\Database\\Document constructor expects array\, array given\.$#' + message: '#^Parameter \#1 \$input of class Utopia\\Database\\Document constructor expects array\, array\ given\.$#' identifier: argument.type count: 1 path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php @@ -18303,7 +18681,13 @@ parameters: - message: '#^Parameter \#1 \$input of class Utopia\\Database\\Document constructor expects array\, array given\.$#' identifier: argument.type - count: 2 + count: 1 + path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php + + - + message: '#^Parameter \#1 \$input of class Utopia\\Database\\Document constructor expects array\, array\ given\.$#' + identifier: argument.type + count: 1 path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php - @@ -18465,7 +18849,13 @@ parameters: - message: '#^Parameter \#1 \$input of class Utopia\\Database\\Document constructor expects array\, array given\.$#' identifier: argument.type - count: 2 + count: 1 + path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php + + - + message: '#^Parameter \#1 \$input of class Utopia\\Database\\Document constructor expects array\, array\ given\.$#' + identifier: argument.type + count: 1 path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php - @@ -18810,6 +19200,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php + - message: '#^Parameter \#2 \$permissions of method Utopia\\Database\\Database\:\:updateCollection\(\) expects array\, array\\|null given\.$#' identifier: argument.type @@ -19674,6 +20070,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/XList.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Databases/Http/Databases/Update.php + - message: '#^Binary operation "\*" between mixed and mixed results in an error\.$#' identifier: binaryOp.invalid @@ -20317,19 +20719,19 @@ parameters: path: src/Appwrite/Platform/Modules/Databases/Workers/Databases.php - - message: '#^Parameter \#1 \$value of function floatval expects array\|bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function floatval expects array\|bool\|float\|GMP\|int\|resource\|SimpleXMLElement\|string\|null, mixed given\.$#' identifier: argument.type count: 1 path: src/Appwrite/Platform/Modules/Databases/Workers/Databases.php - - message: '#^Parameter \#1 \$value of function intval expects array\|bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function intval expects array\|bool\|float\|GMP\|int\|resource\|SimpleXMLElement\|string\|null, mixed given\.$#' identifier: argument.type count: 1 path: src/Appwrite/Platform/Modules/Databases/Workers/Databases.php - - message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function strval expects bool\|float\|GMP\|int\|resource\|string\|null, mixed given\.$#' identifier: argument.type count: 2 path: src/Appwrite/Platform/Modules/Databases/Workers/Databases.php @@ -20346,6 +20748,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Databases/Workers/Databases.php + - + message: '#^Parameter \#2 \$arrays of function array_diff expects an array of values castable to string, list\ given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Platform/Modules/Databases/Workers/Databases.php + - message: '#^Parameter \#2 \$collection of method Appwrite\\Platform\\Modules\\Databases\\Workers\\Databases\:\:deleteCollection\(\) expects Utopia\\Database\\Document, mixed given\.$#' identifier: argument.type @@ -20575,7 +20983,7 @@ parameters: path: src/Appwrite/Platform/Modules/Functions/Http/Deployments/Create.php - - message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function strval expects bool\|float\|GMP\|int\|resource\|string\|null, mixed given\.$#' identifier: argument.type count: 2 path: src/Appwrite/Platform/Modules/Functions/Http/Deployments/Create.php @@ -21061,7 +21469,7 @@ parameters: path: src/Appwrite/Platform/Modules/Functions/Http/Executions/Create.php - - message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function strval expects bool\|float\|GMP\|int\|resource\|string\|null, mixed given\.$#' identifier: argument.type count: 2 path: src/Appwrite/Platform/Modules/Functions/Http/Executions/Create.php @@ -21270,6 +21678,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Functions/Http/Executions/XList.php + - + message: '#^Parameter \#1 \$array of function array_diff expects an array of values castable to string, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Functions/Http/Executions/XList.php + - message: '#^Parameter \#1 \$datetime of function strtotime expects string, string\|null given\.$#' identifier: argument.type @@ -21558,6 +21972,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Functions/Http/Functions/Update.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Functions/Http/Functions/Update.php + - message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, int given\.$#' identifier: argument.type @@ -21810,6 +22230,12 @@ parameters: count: 2 path: src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php + - + message: '#^Parameter \#1 \$array of function array_intersect expects an array of values castable to string, array given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php + - message: '#^Parameter \#1 \$array of function array_keys expects array, mixed given\.$#' identifier: argument.type @@ -21834,6 +22260,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php + - + message: '#^Parameter \#2 \$arrays of function array_intersect expects an array of values castable to string, list given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php + - message: '#^Parameter \#2 \.\.\.\$arrays of function array_intersect expects array, mixed given\.$#' identifier: argument.type @@ -22452,6 +22884,12 @@ parameters: count: 3 path: src/Appwrite/Platform/Modules/Functions/Workers/Builds.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Platform/Modules/Functions/Workers/Builds.php + - message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, int given\.$#' identifier: argument.type @@ -22777,7 +23215,7 @@ parameters: path: src/Appwrite/Platform/Modules/Functions/Workers/Screenshots.php - - message: '#^Parameter \#1 \$value of function intval expects array\|bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function intval expects array\|bool\|float\|GMP\|int\|resource\|SimpleXMLElement\|string\|null, mixed given\.$#' identifier: argument.type count: 1 path: src/Appwrite/Platform/Modules/Functions/Workers/Screenshots.php @@ -22836,6 +23274,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Health/Http/Health/Cache/Get.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, list\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Health/Http/Health/Cache/Get.php + - message: '#^Part \$cache \(mixed\) of encapsed string cannot be cast to string\.$#' identifier: encapsedStringPart.nonString @@ -22902,6 +23346,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Health/Http/Health/DB/Get.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, list\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Health/Http/Health/DB/Get.php + - message: '#^Part \$database \(mixed\) of encapsed string cannot be cast to string\.$#' identifier: encapsedStringPart.nonString @@ -22920,6 +23370,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Health/Http/Health/PubSub/Get.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, list\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Health/Http/Health/PubSub/Get.php + - message: '#^Part \$pubsub \(mixed\) of encapsed string cannot be cast to string\.$#' identifier: encapsedStringPart.nonString @@ -23466,6 +23922,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Projects/Http/Schedules/Create.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Projects/Http/Schedules/Create.php + - message: '#^Method Appwrite\\Platform\\Modules\\Projects\\Http\\Schedules\\XList\:\:action\(\) has parameter \$queries with no value type specified in iterable type array\.$#' identifier: missingType.iterableValue @@ -23893,7 +24355,13 @@ parameters: path: src/Appwrite/Platform/Modules/Sites/Http/Deployments/Create.php - - message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function strval expects bool\|float\|GMP\|int\|resource\|string\|null, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Platform/Modules/Sites/Http/Deployments/Create.php + + - + message: '#^Parameter \#2 \$array of function implode expects array\, list\ given\.$#' identifier: argument.type count: 2 path: src/Appwrite/Platform/Modules/Sites/Http/Deployments/Create.php @@ -24036,6 +24504,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Sites/Http/Deployments/Duplicate/Create.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, list\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Sites/Http/Deployments/Duplicate/Create.php + - message: '#^Method Appwrite\\Platform\\Modules\\Sites\\Http\\Deployments\\Get\:\:action\(\) has no return type specified\.$#' identifier: missingType.return @@ -24090,6 +24564,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Sites/Http/Deployments/Template/Create.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, list\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Sites/Http/Deployments/Template/Create.php + - message: '#^Parameter \#2 \$id of method Utopia\\Database\\Database\:\:getDocument\(\) expects string, mixed given\.$#' identifier: argument.type @@ -24258,6 +24738,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Sites/Http/Logs/XList.php + - + message: '#^Parameter \#1 \$array of function array_diff expects an array of values castable to string, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Sites/Http/Logs/XList.php + - message: '#^Parameter \#1 \$datetime of function strtotime expects string, string\|null given\.$#' identifier: argument.type @@ -24438,6 +24924,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Sites/Http/Sites/Update.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Sites/Http/Sites/Update.php + - message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, int given\.$#' identifier: argument.type @@ -24660,6 +25152,12 @@ parameters: count: 2 path: src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php + - + message: '#^Parameter \#1 \$array of function array_intersect expects an array of values castable to string, array given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php + - message: '#^Parameter \#1 \$array of function array_keys expects array, mixed given\.$#' identifier: argument.type @@ -24684,6 +25182,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php + - + message: '#^Parameter \#2 \$arrays of function array_intersect expects an array of values castable to string, list given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php + - message: '#^Parameter \#2 \.\.\.\$arrays of function array_intersect expects array, mixed given\.$#' identifier: argument.type @@ -25212,6 +25716,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Storage/Http/Buckets/Files/Create.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Platform/Modules/Storage/Http/Buckets/Files/Create.php + - message: '#^Parameter \#2 \$default of static method Utopia\\System\\System\:\:getEnv\(\) expects string\|null, int given\.$#' identifier: argument.type @@ -26574,6 +27084,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/Teams/Http/Memberships/Create.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/Teams/Http/Memberships/Create.php + - message: '#^Parameter \#2 \$replace of function str_replace expects array\\|string, int\\|int\<1, max\> given\.$#' identifier: argument.type @@ -27270,6 +27786,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Authorize/External/Update.php + - + message: '#^Parameter \#1 \$array of function array_unique expects an array of values castable to string, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Authorize/External/Update.php + - message: '#^Parameter \#1 \$deployment of method Appwrite\\Event\\Build\:\:setDeployment\(\) expects Utopia\\Database\\Document, mixed given\.$#' identifier: argument.type @@ -27325,7 +27847,7 @@ parameters: path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Authorize/External/Update.php - - message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function strval expects bool\|float\|GMP\|int\|resource\|string\|null, mixed given\.$#' identifier: argument.type count: 1 path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Authorize/External/Update.php @@ -27360,6 +27882,18 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Authorize/External/Update.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Authorize/External/Update.php + + - + message: '#^Parameter \#2 \$array of function implode expects array\, list\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Authorize/External/Update.php + - message: '#^Parameter \#2 \$haystack of function in_array expects array, mixed given\.$#' identifier: argument.type @@ -27534,6 +28068,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Authorize/External/Update.php + - + message: '#^Variable \$previewRuleId in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Authorize/External/Update.php + - message: '#^Variable \$previewUrl in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable @@ -27925,7 +28465,7 @@ parameters: path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Events/Create.php - - message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function strval expects bool\|float\|GMP\|int\|resource\|string\|null, mixed given\.$#' identifier: argument.type count: 1 path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Events/Create.php @@ -27966,6 +28506,24 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Events/Create.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Events/Create.php + + - + message: '#^Parameter \#2 \$array of function implode expects array\, list\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Events/Create.php + + - + message: '#^Parameter \#2 \$arrays of function array_diff expects an array of values castable to string, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Events/Create.php + - message: '#^Parameter \#2 \$githubAppId of method Appwrite\\Platform\\Modules\\VCS\\Http\\GitHub\\Events\\Create\:\:handlePushEvent\(\) expects string, string\|null given\.$#' identifier: argument.type @@ -28170,6 +28728,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Events/Create.php + - + message: '#^Variable \$previewRuleId in empty\(\) always exists and is not falsy\.$#' + identifier: empty.variable + count: 1 + path: src/Appwrite/Platform/Modules/VCS/Http/GitHub/Events/Create.php + - message: '#^Variable \$previewUrl in empty\(\) always exists and is not falsy\.$#' identifier: empty.variable @@ -28369,7 +28933,7 @@ parameters: path: src/Appwrite/Platform/Modules/VCS/Http/Installations/Repositories/Create.php - - message: '#^Parameter \#1 \$input of class Utopia\\Database\\Document constructor expects array\, array given\.$#' + message: '#^Parameter \#1 \$input of class Utopia\\Database\\Document constructor expects array\, array\ given\.$#' identifier: argument.type count: 1 path: src/Appwrite/Platform/Modules/VCS/Http/Installations/Repositories/Create.php @@ -28393,7 +28957,7 @@ parameters: path: src/Appwrite/Platform/Modules/VCS/Http/Installations/Repositories/Create.php - - message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function strval expects bool\|float\|GMP\|int\|resource\|string\|null, mixed given\.$#' identifier: argument.type count: 1 path: src/Appwrite/Platform/Modules/VCS/Http/Installations/Repositories/Create.php @@ -28513,7 +29077,7 @@ parameters: path: src/Appwrite/Platform/Modules/VCS/Http/Installations/Repositories/Get.php - - message: '#^Parameter \#1 \$input of class Utopia\\Database\\Document constructor expects array\, array given\.$#' + message: '#^Parameter \#1 \$input of class Utopia\\Database\\Document constructor expects array\, array\ given\.$#' identifier: argument.type count: 1 path: src/Appwrite/Platform/Modules/VCS/Http/Installations/Repositories/Get.php @@ -28531,7 +29095,7 @@ parameters: path: src/Appwrite/Platform/Modules/VCS/Http/Installations/Repositories/Get.php - - message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function strval expects bool\|float\|GMP\|int\|resource\|string\|null, mixed given\.$#' identifier: argument.type count: 1 path: src/Appwrite/Platform/Modules/VCS/Http/Installations/Repositories/Get.php @@ -28735,7 +29299,7 @@ parameters: path: src/Appwrite/Platform/Modules/VCS/Http/Installations/Repositories/XList.php - - message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function strval expects bool\|float\|GMP\|int\|resource\|string\|null, mixed given\.$#' identifier: argument.type count: 1 path: src/Appwrite/Platform/Modules/VCS/Http/Installations/Repositories/XList.php @@ -29388,18 +29952,6 @@ parameters: count: 2 path: src/Appwrite/Platform/Tasks/Migrate.php - - - message: '#^Parameter \#1 \$project of method Appwrite\\Migration\\Migration\:\:setProject\(\) expects Utopia\\Database\\Document, mixed given\.$#' - identifier: argument.type - count: 1 - path: src/Appwrite/Platform/Tasks/Migrate.php - - - - message: '#^Parameter \#1 of callable callable\(Utopia\\Database\\Document\)\: Utopia\\Database\\Database expects Utopia\\Database\\Document, mixed given\.$#' - identifier: argument.type - count: 1 - path: src/Appwrite/Platform/Tasks/Migrate.php - - message: '#^Cannot cast mixed to int\.$#' identifier: cast.int @@ -29652,6 +30204,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Tasks/SDKs.php + - + message: '#^Parameter \#1 \$array of function array_unique expects an array of values castable to string, list given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Tasks/SDKs.php + - message: '#^Parameter \#1 \$changelog of method Appwrite\\Platform\\Tasks\\SDKs\:\:extractReleaseNotes\(\) expects string, string\|false given\.$#' identifier: argument.type @@ -29850,6 +30408,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Tasks/SDKs.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Platform/Tasks/SDKs.php + - message: '#^Parameter \#2 \$haystack of function in_array expects array, list\\|string given\.$#' identifier: argument.type @@ -30090,6 +30654,18 @@ parameters: count: 2 path: src/Appwrite/Platform/Tasks/ScheduleBase.php + - + message: '#^Parameter \#1 \$array of function array_unique expects an array of values castable to string, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Tasks/ScheduleBase.php + + - + message: '#^Parameter \#1 \$array of function array_unique expects an array of values castable to string, list\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Tasks/ScheduleBase.php + - message: '#^Parameter \#1 \$datetime of function strtotime expects string, mixed given\.$#' identifier: argument.type @@ -31369,7 +31945,7 @@ parameters: path: src/Appwrite/Platform/Workers/Deletes.php - - message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function strval expects bool\|float\|GMP\|int\|resource\|string\|null, mixed given\.$#' identifier: argument.type count: 2 path: src/Appwrite/Platform/Workers/Deletes.php @@ -33606,6 +34182,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Workers/Migrations.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Platform/Workers/Migrations.php + - message: '#^Parameter \#2 \$endpoint of class Utopia\\Migration\\Destinations\\Appwrite constructor expects string, mixed given\.$#' identifier: argument.type @@ -34518,6 +35100,12 @@ parameters: count: 1 path: src/Appwrite/Platform/Workers/Webhooks.php + - + message: '#^Parameter \#2 \$array of function implode expects array\, array given\.$#' + identifier: argument.type + count: 3 + path: src/Appwrite/Platform/Workers/Webhooks.php + - message: '#^Parameter \#2 \$payload of method Appwrite\\Platform\\Workers\\Webhooks\:\:execute\(\) expects string, string\|false given\.$#' identifier: argument.type @@ -35389,7 +35977,7 @@ parameters: path: src/Appwrite/SDK/Specification/Format/OpenAPI3.php - - message: '#^Parameter \#1 \$list of method Utopia\\Http\\Http\:\:getResources\(\) expects array, mixed given\.$#' + message: '#^Parameter \#1 \$list of method Utopia\\Http\\Http\:\:getResources\(\) expects array\, mixed given\.$#' identifier: argument.type count: 1 path: src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -35400,6 +35988,12 @@ parameters: count: 2 path: src/Appwrite/SDK/Specification/Format/OpenAPI3.php + - + message: '#^Parameter \#2 \$array of function join expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/SDK/Specification/Format/OpenAPI3.php + - message: '#^Parameter \#2 \$excludedValues of method Appwrite\\SDK\\Specification\\Format\:\:parseDescription\(\) expects array, mixed given\.$#' identifier: argument.type @@ -35718,6 +36312,12 @@ parameters: count: 1 path: src/Appwrite/SDK/Specification/Format/Swagger2.php + - + message: '#^Parameter \#1 \$array of function array_unique expects an array of values castable to string, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/SDK/Specification/Format/Swagger2.php + - message: '#^Parameter \#1 \$array of function array_values expects array\, mixed given\.$#' identifier: argument.type @@ -35737,7 +36337,7 @@ parameters: path: src/Appwrite/SDK/Specification/Format/Swagger2.php - - message: '#^Parameter \#1 \$list of method Utopia\\Http\\Http\:\:getResources\(\) expects array, mixed given\.$#' + message: '#^Parameter \#1 \$list of method Utopia\\Http\\Http\:\:getResources\(\) expects array\, mixed given\.$#' identifier: argument.type count: 1 path: src/Appwrite/SDK/Specification/Format/Swagger2.php @@ -35748,6 +36348,12 @@ parameters: count: 2 path: src/Appwrite/SDK/Specification/Format/Swagger2.php + - + message: '#^Parameter \#2 \$array of function join expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/SDK/Specification/Format/Swagger2.php + - message: '#^Parameter \#2 \$excludedValues of method Appwrite\\SDK\\Specification\\Format\:\:parseDescription\(\) expects array, mixed given\.$#' identifier: argument.type @@ -36252,6 +36858,12 @@ parameters: count: 1 path: src/Appwrite/Utopia/Database/RuntimeQuery.php + - + message: '#^Parameter \#1 \$array of function array_unique expects an array of values castable to string, array given\.$#' + identifier: argument.type + count: 1 + path: src/Appwrite/Utopia/Database/RuntimeQuery.php + - message: '#^Parameter \#1 \$condition of static method Appwrite\\Utopia\\Database\\RuntimeQuery\:\:evaluateCondition\(\) expects array, mixed given\.$#' identifier: argument.type @@ -36876,6 +37488,12 @@ parameters: count: 1 path: src/Appwrite/Utopia/Request/Filters/V20.php + - + message: '#^Parameter \#1 \$array of function array_unique expects an array of values castable to string, array given\.$#' + identifier: argument.type + count: 2 + path: src/Appwrite/Utopia/Request/Filters/V20.php + - message: '#^Parameter \#1 \$attributes of static method Utopia\\Database\\Query\:\:select\(\) expects array\, list given\.$#' identifier: argument.type @@ -38724,6 +39342,12 @@ parameters: count: 6 path: src/Executor/Executor.php + - + message: '#^Offset ''content\-type'' on array\ on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset + count: 1 + path: src/Executor/Executor.php + - message: '#^Offset ''headers'' might not exist on array\|string\.$#' identifier: offsetAccess.notFound @@ -38755,13 +39379,13 @@ parameters: path: src/Executor/Executor.php - - message: '#^Parameter \#1 \$value of function floatval expects array\|bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function floatval expects array\|bool\|float\|GMP\|int\|resource\|SimpleXMLElement\|string\|null, mixed given\.$#' identifier: argument.type count: 2 path: src/Executor/Executor.php - - message: '#^Parameter \#1 \$value of function intval expects array\|bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function intval expects array\|bool\|float\|GMP\|int\|resource\|SimpleXMLElement\|string\|null, mixed given\.$#' identifier: argument.type count: 1 path: src/Executor/Executor.php @@ -38868,6 +39492,12 @@ parameters: count: 1 path: tests/e2e/Client.php + - + message: '#^Offset ''content\-type'' on array\ on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset + count: 1 + path: tests/e2e/Client.php + - message: '#^Parameter \#1 \$string of function strlen expects string, mixed given\.$#' identifier: argument.type @@ -39295,7 +39925,7 @@ parameters: path: tests/e2e/General/CompressionTest.php - - message: '#^Parameter \#1 \$value of function intval expects array\|bool\|float\|int\|resource\|string\|null, mixed given\.$#' + message: '#^Parameter \#1 \$value of function intval expects array\|bool\|float\|GMP\|int\|resource\|SimpleXMLElement\|string\|null, mixed given\.$#' identifier: argument.type count: 1 path: tests/e2e/General/CompressionTest.php @@ -64290,6 +64920,12 @@ parameters: count: 1 path: tests/e2e/Services/Migrations/MigrationsConsoleClientTest.php + - + message: '#^Offset 1 might not exist on array\{\}\|array\{non\-falsy\-string, non\-falsy\-string\}\.$#' + identifier: offsetAccess.notFound + count: 2 + path: tests/e2e/Services/Migrations/MigrationsConsoleClientTest.php + - message: '#^Parameter \#1 \$datetime of class DateTime constructor expects string, mixed given\.$#' identifier: argument.type