Files
yii2/phpstan-baseline.neon

412 lines
14 KiB
Plaintext

parameters:
ignoreErrors:
-
message: "#^Variable \\$viaClass might not be defined\\.$#"
count: 5
path: framework/db/BaseActiveRecord.php
-
message: "#^Variable \\$viaTable might not be defined\\.$#"
count: 5
path: framework/db/BaseActiveRecord.php
-
message: "#^Variable \\$command might not be defined\\.$#"
count: 1
path: framework/db/Query.php
-
message: "#^Variable \\$rawValues in isset\\(\\) always exists and is not nullable\\.$#"
count: 1
path: framework/db/conditions/InConditionBuilder.php
-
message: "#^Access to undefined constant PDO\\:\\:CUBRID_SCH_CONSTRAINT\\.$#"
count: 1
path: framework/db/cubrid/Schema.php
-
message: "#^Access to undefined constant PDO\\:\\:CUBRID_SCH_IMPORTED_KEYS\\.$#"
count: 2
path: framework/db/cubrid/Schema.php
-
message: "#^Access to undefined constant PDO\\:\\:CUBRID_SCH_PRIMARY_KEY\\.$#"
count: 2
path: framework/db/cubrid/Schema.php
-
message: "#^Access to undefined constant PDO\\:\\:CUBRID_SCH_TABLE\\.$#"
count: 2
path: framework/db/cubrid/Schema.php
-
message: "#^Variable \\$error in isset\\(\\) always exists and is always null\\.$#"
count: 1
path: framework/helpers/BaseConsole.php
-
message: "#^Unsafe call to private method yii\\\\helpers\\\\BaseConsole::getProgressbarWidth\\(\\) through static\\:\\:\\.$#"
count: 1
path: framework/helpers/BaseConsole.php
-
message: "#^Access to an undefined property yii\\\\db\\\\ActiveQueryInterface\\:\\:\\$modelClass\\.$#"
count: 1
path: framework/grid/DataColumn.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getValue\\(\\)\\.$#"
count: 1
path: framework/db/pgsql/JsonExpressionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getValue\\(\\)\\.$#"
count: 2
path: framework/db/pgsql/ArrayExpressionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getDimension\\(\\)\\.$#"
count: 1
path: framework/db/pgsql/ArrayExpressionBuilder.php
-
message: "#^PHPDoc tag @param for parameter \\$condition with type yii\\\\db\\\\ExpressionInterface is not subtype of native type yii\\\\db\\\\conditions\\\\InCondition\\.$#"
count: 1
path: framework/db/oci/conditions/InConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getValue\\(\\)\\.$#"
count: 1
path: framework/db/mysql/JsonExpressionBuilder.php
-
message: "#^Access to an undefined property yii\\\\db\\\\ColumnSchema\\:\\:\\$isComputed\\.$#"
count: 1
path: framework/db/mssql/QueryBuilder.php
-
message: "#^Call to an undefined method PDO\\:\\:cubrid_schema\\(\\)\\.$#"
count: 7
path: framework/db/cubrid/Schema.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getOperator\\(\\)\\.$#"
count: 1
path: framework/db/conditions/SimpleConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getColumn\\(\\)\\.$#"
count: 1
path: framework/db/conditions/SimpleConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getValue\\(\\)\\.$#"
count: 1
path: framework/db/conditions/SimpleConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getCondition\\(\\)\\.$#"
count: 1
path: framework/db/conditions/NotConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getOperator\\(\\)\\.$#"
count: 1
path: framework/db/conditions/LikeConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getColumn\\(\\)\\.$#"
count: 1
path: framework/db/conditions/LikeConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getValue\\(\\)\\.$#"
count: 1
path: framework/db/conditions/LikeConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getEscapingReplacements\\(\\)\\.$#"
count: 1
path: framework/db/conditions/LikeConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getOperator\\(\\)\\.$#"
count: 1
path: framework/db/conditions/InConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getColumn\\(\\)\\.$#"
count: 1
path: framework/db/conditions/InConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getValues\\(\\)\\.$#"
count: 1
path: framework/db/conditions/InConditionBuilder.php
-
message: "#^Call to an undefined method Traversable\\:\\:rewind\\(\\)\\.$#"
count: 2
path: framework/db/conditions/InConditionBuilder.php
-
message: "#^Call to an undefined method Traversable\\:\\:current\\(\\)\\.$#"
count: 2
path: framework/db/conditions/InConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\conditions\\\\ConditionInterface\\:\\:getColumn\\(\\)\\.$#"
count: 1
path: framework/db/conditions/InConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getHash\\(\\)\\.$#"
count: 1
path: framework/db/conditions/HashConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getOperator\\(\\)\\.$#"
count: 1
path: framework/db/conditions/ExistsConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getQuery\\(\\)\\.$#"
count: 1
path: framework/db/conditions/ExistsConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getOperator\\(\\)\\.$#"
count: 1
path: framework/db/conditions/ConjunctionConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getExpressions\\(\\)\\.$#"
count: 1
path: framework/db/conditions/ConjunctionConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getOperator\\(\\)\\.$#"
count: 1
path: framework/db/conditions/BetweenConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getColumn\\(\\)\\.$#"
count: 1
path: framework/db/conditions/BetweenConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getIntervalStart\\(\\)\\.$#"
count: 1
path: framework/db/conditions/BetweenConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getIntervalEnd\\(\\)\\.$#"
count: 1
path: framework/db/conditions/BetweenConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getOperator\\(\\)\\.$#"
count: 1
path: framework/db/conditions/BetweenColumnsConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getIntervalStartColumn\\(\\)\\.$#"
count: 1
path: framework/db/conditions/BetweenColumnsConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getIntervalEndColumn\\(\\)\\.$#"
count: 1
path: framework/db/conditions/BetweenColumnsConditionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:getValue\\(\\)\\.$#"
count: 1
path: framework/db/conditions/BetweenColumnsConditionBuilder.php
-
message: "#^Access to an undefined property yii\\\\db\\\\ExpressionInterface\\:\\:\\$params\\.$#"
count: 1
path: framework/db/ExpressionBuilder.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ExpressionInterface\\:\\:__toString\\(\\)\\.$#"
count: 1
path: framework/db/ExpressionBuilder.php
-
message: "#^Access to an undefined property yii\\\\db\\\\ActiveQueryInterface\\:\\:\\$via\\.$#"
count: 4
path: framework/db/BaseActiveRecord.php
-
message: "#^Access to an undefined property yii\\\\db\\\\ActiveQueryInterface\\:\\:\\$link\\.$#"
count: 16
path: framework/db/BaseActiveRecord.php
-
message: "#^Access to an undefined property yii\\\\db\\\\ActiveQueryInterface\\:\\:\\$multiple\\.$#"
count: 2
path: framework/db/BaseActiveRecord.php
-
message: "#^Access to an undefined property yii\\\\db\\\\ActiveQueryInterface\\:\\:\\$indexBy\\.$#"
count: 1
path: framework/db/BaseActiveRecord.php
-
message: "#^Access to an undefined property yii\\\\db\\\\ActiveQueryInterface\\:\\:\\$modelClass\\.$#"
count: 3
path: framework/db/BaseActiveRecord.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ActiveRecordInterface\\:\\:attributeLabels\\(\\)\\.$#"
count: 1
path: framework/db/BaseActiveRecord.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ActiveRecordInterface\\:\\:isRelationPopulated\\(\\)\\.$#"
count: 2
path: framework/db/BaseActiveRecord.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ActiveRecordInterface\\:\\:attributeHints\\(\\)\\.$#"
count: 1
path: framework/db/BaseActiveRecord.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ActiveQueryInterface\\:\\:findWith\\(\\)\\.$#"
count: 1
path: framework/db/BaseActiveRecord.php
-
message: "#^Access to an undefined property yii\\\\db\\\\ActiveQueryInterface\\:\\:\\$multiple\\.$#"
count: 3
path: framework/db/ActiveRelationTrait.php
-
message: "#^Access to an undefined property yii\\\\db\\\\ActiveQueryInterface\\:\\:\\$link\\.$#"
count: 4
path: framework/db/ActiveRelationTrait.php
-
message: "#^PHPDoc tag \\@var for variable \\$viaQuery has invalid type yii\\\\db\\\\ActiveQueryTrait\\.$#"
count: 1
path: framework/db/ActiveRelationTrait.php
-
message: "#^Access to property \\$asArray on an unknown class yii\\\\db\\\\ActiveQueryTrait\\.$#"
count: 1
path: framework/db/ActiveRelationTrait.php
-
message: "#^Access to property \\$primaryModel on an unknown class yii\\\\db\\\\ActiveQueryTrait\\.$#"
count: 2
path: framework/db/ActiveRelationTrait.php
-
message: "#^Call to method asArray\\(\\) on an unknown class yii\\\\db\\\\ActiveQueryTrait\\.$#"
count: 1
path: framework/db/ActiveRelationTrait.php
-
message: "#^Call to method populateRelation\\(\\) on an unknown class yii\\\\db\\\\ActiveQueryTrait\\.$#"
count: 1
path: framework/db/ActiveRelationTrait.php
-
message: "#^Access to an undefined property yii\\\\db\\\\ActiveQueryInterface\\:\\:\\$primaryModel\\.$#"
count: 1
path: framework/db/ActiveQueryTrait.php
-
message: "#^Access to an undefined property yii\\\\db\\\\ActiveQueryInterface\\:\\:\\$with\\.$#"
count: 1
path: framework/db/ActiveQueryTrait.php
-
message: "#^Access to an undefined property yii\\\\db\\\\ActiveQueryInterface\\:\\:\\$modelClass\\.$#"
count: 1
path: framework/db/ActiveQuery.php
-
message: "#^Call to an undefined method yii\\\\db\\\\ActiveQueryInterface\\:\\:buildJoinWith\\(\\)\\.$#"
count: 1
path: framework/db/ActiveQuery.php
-
message: "#^Access to an undefined property yii\\\\db\\\\ActiveQueryInterface\\:\\:\\$modelClass\\.$#"
count: 2
path: framework/data/ActiveDataProvider.php
-
message: "#^Access to an undefined property yii\\\\base\\\\BaseObject\\&yii\\\\db\\\\MigrationInterface\\:\\:\\$compact\\.$#"
count: 1
path: framework/console/controllers/BaseMigrateController.php
-
message: "#^PHPDoc tag \\@param references unknown parameter\\: \\$args$#"
count: 2
path: framework/console/Controller.php
-
message: "#^Call to an undefined method T of yii\\\\base\\\\Model\\:\\:canSetOldAttribute\\(\\)\\.$#"
count: 1
path: framework/behaviors/AttributeTypecastBehavior.php
-
message: "#^Call to an undefined method T of yii\\\\base\\\\Model\\:\\:setOldAttribute\\(\\)\\.$#"
count: 1
path: framework/behaviors/AttributeTypecastBehavior.php
-
message: "#^Method yii\\\\helpers\\\\BaseFileHelper\\:\\:filterPath\\(\\) should return bool but returns int\\<0\\, 16\\>\\.$#"
count: 1
path: framework/helpers/BaseFileHelper.php
-
message: "#^Parameter \\&\\$length by\\-ref type of method yii\\\\db\\\\sqlite\\\\SqlTokenizer\\:\\:isOperator\\(\\) expects int\\, int\\|null given\\.$#"
count: 1
path: framework/db/sqlite/SqlTokenizer.php
-
message: "#^Method yii\\\\db\\\\BaseActiveRecord\\:\\:findOne\\(\\) should return static\\(yii\\\\db\\\\BaseActiveRecord\\)\\|null but returns array\\|yii\\\\db\\\\ActiveRecordInterface\\|null\\.$#"
count: 1
path: framework/db/BaseActiveRecord.php
-
message: "#^Property yii\\\\db\\\\ActiveQuery\\<yii\\\\db\\\\ActiveRecord\\>\\:\\:\\$primaryModel \\(yii\\\\db\\\\ActiveRecord\\) does not accept \\$this\\(yii\\\\db\\\\BaseActiveRecord\\)\\.$#"
count: 1
path: framework/db/BaseActiveRecord.php
-
message: "#^Parameter \\&\\$models by\\-ref type of method yii\\\\db\\\\ActiveQuery\\:\\:findWith\\(\\) expects array\\<yii\\\\db\\\\ActiveRecord\\>\\, array given\\.$#"
count: 1
path: framework/db/ActiveQueryTrait.php
-
message: "#^Method yii\\\\captcha\\\\CaptchaAction\\:\\:generateValidationHash\\(\\) should return string but returns int\\.$#"
count: 1
path: framework/captcha/CaptchaAction.php
-
message: "#^Method yii\\\\caching\\\\WinCache\\:\\:setValues\\(\\) should return array but returns bool\\.$#"
count: 1
path: framework/caching/WinCache.php
-
message: "#^Method yii\\\\caching\\\\WinCache\\:\\:addValues\\(\\) should return array but returns bool\\.$#"
count: 1
path: framework/caching/WinCache.php
-
message: "#^Argument of an invalid type \\$this\\(yii\\\\caching\\\\Dependency\\) supplied for foreach\\, only iterables are supported\\.$#"
count: 1
path: framework/caching/Dependency.php
-
message: "#^Property yii\\\\console\\\\Application\\:\\:\\$controller \\(yii\\\\console\\\\Controller\\|yii\\\\web\\\\Controller\\) does not accept yii\\\\base\\\\Controller\\.$#"
count: 1
path: framework/base/Module.php