diff --git a/utils/phpstan-baseline/argument.type.neon b/utils/phpstan-baseline/argument.type.neon index 751a7aacb500..6e4bc79f0f9c 100644 --- a/utils/phpstan-baseline/argument.type.neon +++ b/utils/phpstan-baseline/argument.type.neon @@ -1,4 +1,4 @@ -# total 75 errors +# total 73 errors parameters: ignoreErrors: @@ -307,16 +307,6 @@ parameters: count: 1 path: ../../tests/system/Test/TestResponseTest.php - - - message: '#^Parameter \#1 \$config of class CodeIgniter\\Validation\\Validation constructor expects Config\\Validation, stdClass given\.$#' - count: 1 - path: ../../tests/system/Validation/CreditCardRulesTest.php - - - - message: '#^Parameter \#1 \$config of class CodeIgniter\\Validation\\Validation constructor expects Config\\Validation, stdClass given\.$#' - count: 1 - path: ../../tests/system/Validation/FileRulesTest.php - - message: '#^Parameter \#1 \$config of class CodeIgniter\\Validation\\Validation constructor expects Config\\Validation, stdClass given\.$#' count: 1 diff --git a/utils/phpstan-baseline/assign.propertyType.neon b/utils/phpstan-baseline/assign.propertyType.neon index 2b5ea6f2ce06..d7e8a6818265 100644 --- a/utils/phpstan-baseline/assign.propertyType.neon +++ b/utils/phpstan-baseline/assign.propertyType.neon @@ -8,7 +8,7 @@ parameters: path: ../../system/Controller.php - - message: '#^Property class@anonymous/tests/system/API/ResponseTraitTest\.php\:639\:\:\$format \(''html''\|''json''\|''xml''\|null\) does not accept ''txt''\.$#' + message: '#^Property class@anonymous/tests/system/API/ResponseTraitTest\.php\:621\:\:\$format \(''html''\|''json''\|''xml''\|null\) does not accept ''txt''\.$#' count: 1 path: ../../tests/system/API/ResponseTraitTest.php diff --git a/utils/phpstan-baseline/booleanNot.exprNotBoolean.neon b/utils/phpstan-baseline/booleanNot.exprNotBoolean.neon index 41a36091437c..955c8dc24c84 100644 --- a/utils/phpstan-baseline/booleanNot.exprNotBoolean.neon +++ b/utils/phpstan-baseline/booleanNot.exprNotBoolean.neon @@ -1,4 +1,4 @@ -# total 13 errors +# total 12 errors parameters: ignoreErrors: @@ -37,11 +37,6 @@ parameters: count: 1 path: ../../system/Test/CIUnitTestCase.php - - - message: '#^Only booleans are allowed in a negated boolean, array\|null given\.$#' - count: 6 - path: ../../system/Validation/FileRules.php - - message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' count: 1 diff --git a/utils/phpstan-baseline/codeigniter.superglobalAccessAssign.neon b/utils/phpstan-baseline/codeigniter.superglobalAccessAssign.neon index 2b08524179cb..b86e3e397e29 100644 --- a/utils/phpstan-baseline/codeigniter.superglobalAccessAssign.neon +++ b/utils/phpstan-baseline/codeigniter.superglobalAccessAssign.neon @@ -244,7 +244,7 @@ parameters: - message: '#^Assigning ''GET'' directly on offset ''REQUEST_METHOD'' of \$_SERVER is discouraged\.$#' - count: 36 + count: 38 path: ../../tests/system/Filters/FiltersTest.php - diff --git a/utils/phpstan-baseline/method.childReturnType.neon b/utils/phpstan-baseline/method.childReturnType.neon index 784e0de254fa..4ad4f256f858 100644 --- a/utils/phpstan-baseline/method.childReturnType.neon +++ b/utils/phpstan-baseline/method.childReturnType.neon @@ -1,4 +1,4 @@ -# total 43 errors +# total 39 errors parameters: ignoreErrors: @@ -127,26 +127,6 @@ parameters: count: 1 path: ../../system/HTTP/OutgoingRequest.php - - - message: '#^Return type \(CodeIgniter\\I18n\\Time\) of method CodeIgniter\\I18n\\Time\:\:setTimestamp\(\) should be covariant with return type \(static\(DateTimeImmutable\)\) of method DateTimeImmutable\:\:setTimestamp\(\)$#' - count: 1 - path: ../../system/I18n/Time.php - - - - message: '#^Return type \(CodeIgniter\\I18n\\Time\) of method CodeIgniter\\I18n\\Time\:\:setTimezone\(\) should be covariant with return type \(static\(DateTimeImmutable\)\) of method DateTimeImmutable\:\:setTimezone\(\)$#' - count: 1 - path: ../../system/I18n/Time.php - - - - message: '#^Return type \(CodeIgniter\\I18n\\TimeLegacy\) of method CodeIgniter\\I18n\\TimeLegacy\:\:setTimestamp\(\) should be covariant with return type \(static\(DateTime\)\) of method DateTime\:\:setTimestamp\(\)$#' - count: 1 - path: ../../system/I18n/TimeLegacy.php - - - - message: '#^Return type \(CodeIgniter\\I18n\\TimeLegacy\) of method CodeIgniter\\I18n\\TimeLegacy\:\:setTimezone\(\) should be covariant with return type \(static\(DateTime\)\) of method DateTime\:\:setTimezone\(\)$#' - count: 1 - path: ../../system/I18n/TimeLegacy.php - - message: '#^Return type \(CodeIgniter\\Images\\Handlers\\BaseHandler\) of method CodeIgniter\\Images\\Handlers\\BaseHandler\:\:fit\(\) should be covariant with return type \(\$this\(CodeIgniter\\Images\\ImageHandlerInterface\)\) of method CodeIgniter\\Images\\ImageHandlerInterface\:\:fit\(\)$#' count: 1 diff --git a/utils/phpstan-baseline/method.notFound.neon b/utils/phpstan-baseline/method.notFound.neon index 648e5637378a..b1c28cf73071 100644 --- a/utils/phpstan-baseline/method.notFound.neon +++ b/utils/phpstan-baseline/method.notFound.neon @@ -1,4 +1,4 @@ -# total 47 errors +# total 41 errors parameters: ignoreErrors: @@ -17,36 +17,6 @@ parameters: count: 2 path: ../../system/Debug/Toolbar/Collectors/Views.php - - - message: '#^Call to an undefined method CodeIgniter\\Router\\RouteCollectionInterface\:\:getDefaultNamespace\(\)\.$#' - count: 2 - path: ../../system/Router/Router.php - - - - message: '#^Call to an undefined method CodeIgniter\\Router\\RouteCollectionInterface\:\:getFiltersForRoute\(\)\.$#' - count: 1 - path: ../../system/Router/Router.php - - - - message: '#^Call to an undefined method CodeIgniter\\Router\\RouteCollectionInterface\:\:getRegisteredControllers\(\)\.$#' - count: 1 - path: ../../system/Router/Router.php - - - - message: '#^Call to an undefined method CodeIgniter\\Router\\RouteCollectionInterface\:\:getRoutesOptions\(\)\.$#' - count: 1 - path: ../../system/Router/Router.php - - - - message: '#^Call to an undefined method CodeIgniter\\Router\\RouteCollectionInterface\:\:isFiltered\(\)\.$#' - count: 1 - path: ../../system/Router/Router.php - - - - message: '#^Call to an undefined method CodeIgniter\\Router\\RouteCollectionInterface\:\:setHTTPVerb\(\)\.$#' - count: 1 - path: ../../system/Router/Router.php - - message: '#^Call to an undefined method CodeIgniter\\Database\\ConnectionInterface\:\:tableExists\(\)\.$#' count: 1 diff --git a/utils/phpstan-baseline/missingType.iterableValue.neon b/utils/phpstan-baseline/missingType.iterableValue.neon index 812228800d8f..d2c0fdf7c22c 100644 --- a/utils/phpstan-baseline/missingType.iterableValue.neon +++ b/utils/phpstan-baseline/missingType.iterableValue.neon @@ -1,4 +1,4 @@ -# total 1686 errors +# total 1673 errors parameters: ignoreErrors: @@ -532,16 +532,6 @@ parameters: count: 1 path: ../../system/Commands/Translation/LocalizationFinder.php - - - message: '#^Method CodeIgniter\\Commands\\Utilities\\FilterCheck\:\:addRequiredFilters\(\) has parameter \$filters with no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Commands/Utilities/FilterCheck.php - - - - message: '#^Method CodeIgniter\\Commands\\Utilities\\FilterCheck\:\:addRequiredFilters\(\) return type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Commands/Utilities/FilterCheck.php - - message: '#^Method CodeIgniter\\Commands\\Utilities\\Namespaces\:\:outputAllNamespaces\(\) has parameter \$params with no value type specified in iterable type array\.$#' count: 1 @@ -1352,11 +1342,6 @@ parameters: count: 1 path: ../../system/Database/BaseConnection.php - - - message: '#^Property CodeIgniter\\Database\\BaseConnection\:\:\$aliasedTables type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Database/BaseConnection.php - - message: '#^Property CodeIgniter\\Database\\BaseConnection\:\:\$dataCache type has no value type specified in iterable type array\.$#' count: 1 @@ -3107,21 +3092,6 @@ parameters: count: 1 path: ../../system/Filters/Filters.php - - - message: '#^Method CodeIgniter\\Filters\\Filters\:\:enableFilters\(\) has parameter \$names with no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Filters/Filters.php - - - - message: '#^Method CodeIgniter\\Filters\\Filters\:\:getFilters\(\) return type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Filters/Filters.php - - - - message: '#^Method CodeIgniter\\Filters\\Filters\:\:getFiltersClass\(\) return type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Filters/Filters.php - - message: '#^Method CodeIgniter\\Filters\\Filters\:\:getRequiredFilters\(\) return type has no value type specified in iterable type array\.$#' count: 1 @@ -3132,36 +3102,11 @@ parameters: count: 1 path: ../../system/Filters/Filters.php - - - message: '#^Method CodeIgniter\\Filters\\Filters\:\:registerArguments\(\) has parameter \$arguments with no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Filters/Filters.php - - - - message: '#^Method CodeIgniter\\Filters\\Filters\:\:runAfter\(\) has parameter \$filterClasses with no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Filters/Filters.php - - - - message: '#^Method CodeIgniter\\Filters\\Filters\:\:runBefore\(\) has parameter \$filterClasses with no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Filters/Filters.php - - message: '#^Method CodeIgniter\\Filters\\Filters\:\:setToolbarToLast\(\) return type has no value type specified in iterable type array\.$#' count: 1 path: ../../system/Filters/Filters.php - - - message: '#^Property CodeIgniter\\Filters\\Filters\:\:\$filters type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Filters/Filters.php - - - - message: '#^Property CodeIgniter\\Filters\\Filters\:\:\$filtersClass type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Filters/Filters.php - - message: '#^Method CodeIgniter\\Filters\\ForceHTTPS\:\:after\(\) has parameter \$arguments with no value type specified in iterable type array\.$#' count: 1 @@ -6653,32 +6598,32 @@ parameters: path: ../../tests/system/API/ResponseTraitTest.php - - message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:639\:\:fail\(\) has parameter \$messages with no value type specified in iterable type array\.$#' + message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:621\:\:fail\(\) has parameter \$messages with no value type specified in iterable type array\.$#' count: 1 path: ../../tests/system/API/ResponseTraitTest.php - - message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:639\:\:format\(\) has parameter \$data with no value type specified in iterable type array\.$#' + message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:621\:\:format\(\) has parameter \$data with no value type specified in iterable type array\.$#' count: 1 path: ../../tests/system/API/ResponseTraitTest.php - - message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:639\:\:respond\(\) has parameter \$data with no value type specified in iterable type array\.$#' + message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:621\:\:respond\(\) has parameter \$data with no value type specified in iterable type array\.$#' count: 1 path: ../../tests/system/API/ResponseTraitTest.php - - message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:639\:\:respondCreated\(\) has parameter \$data with no value type specified in iterable type array\.$#' + message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:621\:\:respondCreated\(\) has parameter \$data with no value type specified in iterable type array\.$#' count: 1 path: ../../tests/system/API/ResponseTraitTest.php - - message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:639\:\:respondDeleted\(\) has parameter \$data with no value type specified in iterable type array\.$#' + message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:621\:\:respondDeleted\(\) has parameter \$data with no value type specified in iterable type array\.$#' count: 1 path: ../../tests/system/API/ResponseTraitTest.php - - message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:639\:\:respondUpdated\(\) has parameter \$data with no value type specified in iterable type array\.$#' + message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:621\:\:respondUpdated\(\) has parameter \$data with no value type specified in iterable type array\.$#' count: 1 path: ../../tests/system/API/ResponseTraitTest.php @@ -7867,16 +7812,6 @@ parameters: count: 1 path: ../../tests/system/Throttle/ThrottleTest.php - - - message: '#^Method CodeIgniter\\Validation\\CreditCardRulesTest\:\:calculateLuhnChecksum\(\) has parameter \$digits with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Validation/CreditCardRulesTest.php - - - - message: '#^Method CodeIgniter\\Validation\\CreditCardRulesTest\:\:provideValidCCNumber\(\) return type has no value type specified in iterable type iterable\.$#' - count: 1 - path: ../../tests/system/Validation/CreditCardRulesTest.php - - message: '#^Property CodeIgniter\\Validation\\CreditCardRulesTest\:\:\$config type has no value type specified in iterable type array\.$#' count: 1 diff --git a/utils/phpstan-baseline/missingType.parameter.neon b/utils/phpstan-baseline/missingType.parameter.neon index bde9193eae1a..8a18554d5072 100644 --- a/utils/phpstan-baseline/missingType.parameter.neon +++ b/utils/phpstan-baseline/missingType.parameter.neon @@ -158,12 +158,12 @@ parameters: path: ../../tests/system/API/ResponseTraitTest.php - - message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:639\:\:__construct\(\) has parameter \$request with no type specified\.$#' + message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:621\:\:__construct\(\) has parameter \$request with no type specified\.$#' count: 1 path: ../../tests/system/API/ResponseTraitTest.php - - message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:639\:\:__construct\(\) has parameter \$response with no type specified\.$#' + message: '#^Method class@anonymous/tests/system/API/ResponseTraitTest\.php\:621\:\:__construct\(\) has parameter \$response with no type specified\.$#' count: 1 path: ../../tests/system/API/ResponseTraitTest.php diff --git a/utils/phpstan-baseline/missingType.property.neon b/utils/phpstan-baseline/missingType.property.neon index b1ec02957191..2930b23d3add 100644 --- a/utils/phpstan-baseline/missingType.property.neon +++ b/utils/phpstan-baseline/missingType.property.neon @@ -188,12 +188,12 @@ parameters: path: ../../tests/system/API/ResponseTraitTest.php - - message: '#^Property class@anonymous/tests/system/API/ResponseTraitTest\.php\:639\:\:\$request has no type specified\.$#' + message: '#^Property class@anonymous/tests/system/API/ResponseTraitTest\.php\:621\:\:\$request has no type specified\.$#' count: 1 path: ../../tests/system/API/ResponseTraitTest.php - - message: '#^Property class@anonymous/tests/system/API/ResponseTraitTest\.php\:639\:\:\$response has no type specified\.$#' + message: '#^Property class@anonymous/tests/system/API/ResponseTraitTest\.php\:621\:\:\$response has no type specified\.$#' count: 1 path: ../../tests/system/API/ResponseTraitTest.php diff --git a/utils/phpstan-baseline/property.notFound.neon b/utils/phpstan-baseline/property.notFound.neon index 66e4c0b43263..079d6a122e7c 100644 --- a/utils/phpstan-baseline/property.notFound.neon +++ b/utils/phpstan-baseline/property.notFound.neon @@ -1,4 +1,4 @@ -# total 29 errors +# total 30 errors parameters: ignoreErrors: @@ -42,6 +42,11 @@ parameters: count: 2 path: ../../tests/system/Database/BaseConnectionTest.php + - + message: '#^Access to an undefined property CodeIgniter\\Database\\BaseConnection\:\:\$foundRows\.$#' + count: 2 + path: ../../tests/system/Database/Live/MySQLi/FoundRowsTest.php + - message: '#^Access to an undefined property CodeIgniter\\Database\\BaseConnection\:\:\$numberNative\.$#' count: 2