From f66d5c8864712aef233b8131c2f99721101f61d0 Mon Sep 17 00:00:00 2001
From: Wilmer Arambula <42547589+terabytesoftw@users.noreply.github.com>
Date: Tue, 27 Jan 2026 05:53:03 -0300
Subject: [PATCH] Fixed error PHPCS lasted version in `PHP 8.5`. (#20721)
---
.github/workflows/{lint.yaml => linter.yaml} | 37 +----
build/controllers/ClassmapController.php | 1 +
build/controllers/DevController.php | 1 +
build/controllers/TranslationController.php | 1 +
composer.lock | 148 +++++++++---------
framework/BaseYii.php | 1 +
framework/base/Action.php | 1 +
framework/base/ActionEvent.php | 1 +
framework/base/ActionFilter.php | 1 +
framework/base/Application.php | 1 +
framework/base/ArrayAccessTrait.php | 1 +
framework/base/Arrayable.php | 1 +
framework/base/ArrayableTrait.php | 1 +
framework/base/BaseObject.php | 1 +
framework/base/Behavior.php | 1 +
framework/base/BootstrapInterface.php | 1 +
framework/base/Component.php | 1 +
framework/base/Configurable.php | 1 +
framework/base/Controller.php | 1 +
.../base/DynamicContentAwareInterface.php | 1 +
framework/base/DynamicContentAwareTrait.php | 1 +
framework/base/DynamicModel.php | 1 +
framework/base/ErrorException.php | 1 +
framework/base/ErrorHandler.php | 1 +
framework/base/Event.php | 1 +
framework/base/Exception.php | 1 +
framework/base/ExitException.php | 1 +
framework/base/InlineAction.php | 1 +
framework/base/InvalidArgumentException.php | 1 +
framework/base/InvalidCallException.php | 1 +
framework/base/InvalidConfigException.php | 1 +
framework/base/InvalidParamException.php | 1 +
framework/base/InvalidRouteException.php | 1 +
framework/base/InvalidValueException.php | 1 +
framework/base/Model.php | 1 +
framework/base/ModelEvent.php | 1 +
framework/base/Module.php | 1 +
framework/base/NotSupportedException.php | 1 +
framework/base/Request.php | 1 +
framework/base/Response.php | 1 +
framework/base/Security.php | 1 +
framework/base/StaticInstanceInterface.php | 1 +
framework/base/StaticInstanceTrait.php | 1 +
framework/base/Theme.php | 1 +
framework/base/UnknownClassException.php | 1 +
framework/base/UnknownMethodException.php | 1 +
framework/base/UnknownPropertyException.php | 1 +
framework/base/UserException.php | 1 +
framework/base/View.php | 1 +
framework/base/ViewContextInterface.php | 1 +
framework/base/ViewEvent.php | 1 +
framework/base/ViewNotFoundException.php | 1 +
framework/base/ViewRenderer.php | 1 +
framework/base/Widget.php | 1 +
framework/base/WidgetEvent.php | 1 +
framework/behaviors/AttributeBehavior.php | 1 +
.../behaviors/AttributeTypecastBehavior.php | 1 +
framework/behaviors/AttributesBehavior.php | 1 +
framework/behaviors/BlameableBehavior.php | 1 +
.../behaviors/CacheableWidgetBehavior.php | 1 +
.../behaviors/OptimisticLockBehavior.php | 1 +
framework/behaviors/SluggableBehavior.php | 1 +
framework/behaviors/TimestampBehavior.php | 1 +
framework/caching/ApcCache.php | 1 +
framework/caching/ArrayCache.php | 1 +
framework/caching/Cache.php | 1 +
framework/caching/CacheInterface.php | 1 +
framework/caching/CallbackDependency.php | 1 +
framework/caching/ChainedDependency.php | 1 +
framework/caching/DbCache.php | 1 +
framework/caching/DbDependency.php | 1 +
framework/caching/DbQueryDependency.php | 1 +
framework/caching/Dependency.php | 1 +
framework/caching/DummyCache.php | 1 +
framework/caching/ExpressionDependency.php | 1 +
framework/caching/FileCache.php | 1 +
framework/caching/FileDependency.php | 1 +
framework/caching/MemCache.php | 1 +
framework/caching/MemCacheServer.php | 1 +
framework/caching/TagDependency.php | 1 +
framework/caching/WinCache.php | 1 +
framework/captcha/Captcha.php | 1 +
framework/captcha/CaptchaAction.php | 1 +
framework/captcha/CaptchaAsset.php | 1 +
framework/captcha/CaptchaValidator.php | 1 +
framework/classes.php | 1 +
framework/console/Application.php | 1 +
framework/console/Controller.php | 1 +
framework/console/ErrorHandler.php | 1 +
framework/console/Exception.php | 1 +
framework/console/ExitCode.php | 1 +
framework/console/Markdown.php | 1 +
framework/console/Request.php | 1 +
framework/console/Response.php | 1 +
framework/console/UnknownCommandException.php | 1 +
.../console/controllers/AssetController.php | 1 +
.../controllers/BaseMigrateController.php | 1 +
.../console/controllers/CacheController.php | 1 +
.../console/controllers/FixtureController.php | 1 +
.../console/controllers/HelpController.php | 1 +
.../console/controllers/MessageController.php | 1 +
.../console/controllers/MigrateController.php | 1 +
.../console/controllers/ServeController.php | 1 +
framework/console/widgets/Table.php | 1 +
framework/data/ActiveDataFilter.php | 1 +
framework/data/ActiveDataProvider.php | 1 +
framework/data/ArrayDataProvider.php | 1 +
framework/data/BaseDataProvider.php | 1 +
framework/data/DataFilter.php | 1 +
framework/data/DataProviderInterface.php | 1 +
framework/data/Pagination.php | 1 +
framework/data/Sort.php | 1 +
framework/data/SqlDataProvider.php | 1 +
framework/db/ActiveQuery.php | 1 +
framework/db/ActiveQueryInterface.php | 1 +
framework/db/ActiveQueryTrait.php | 1 +
framework/db/ActiveRecord.php | 1 +
framework/db/ActiveRecordInterface.php | 1 +
framework/db/ActiveRelationTrait.php | 1 +
framework/db/AfterSaveEvent.php | 1 +
framework/db/ArrayExpression.php | 1 +
framework/db/BaseActiveRecord.php | 1 +
framework/db/BatchQueryResult.php | 1 +
framework/db/CheckConstraint.php | 1 +
framework/db/ColumnSchema.php | 1 +
framework/db/ColumnSchemaBuilder.php | 1 +
framework/db/Command.php | 1 +
framework/db/Connection.php | 1 +
framework/db/Constraint.php | 1 +
framework/db/ConstraintFinderInterface.php | 1 +
framework/db/ConstraintFinderTrait.php | 1 +
framework/db/DataReader.php | 1 +
framework/db/DefaultValueConstraint.php | 1 +
framework/db/Exception.php | 1 +
framework/db/Expression.php | 1 +
framework/db/ExpressionBuilder.php | 1 +
framework/db/ExpressionBuilderInterface.php | 1 +
framework/db/ExpressionBuilderTrait.php | 1 +
framework/db/ExpressionInterface.php | 1 +
framework/db/ForeignKeyConstraint.php | 1 +
framework/db/IndexConstraint.php | 1 +
framework/db/IntegrityException.php | 1 +
framework/db/JsonExpression.php | 1 +
framework/db/Migration.php | 1 +
framework/db/MigrationInterface.php | 1 +
framework/db/PdoValue.php | 1 +
framework/db/PdoValueBuilder.php | 1 +
framework/db/Query.php | 1 +
framework/db/QueryBuilder.php | 1 +
framework/db/QueryExpressionBuilder.php | 1 +
framework/db/QueryInterface.php | 1 +
framework/db/QueryTrait.php | 1 +
framework/db/Schema.php | 1 +
framework/db/SchemaBuilderTrait.php | 1 +
framework/db/SqlToken.php | 1 +
framework/db/SqlTokenizer.php | 1 +
framework/db/StaleObjectException.php | 1 +
framework/db/TableSchema.php | 1 +
framework/db/Transaction.php | 1 +
framework/db/ViewFinderTrait.php | 1 +
framework/db/conditions/AndCondition.php | 1 +
.../db/conditions/BetweenColumnsCondition.php | 1 +
.../BetweenColumnsConditionBuilder.php | 1 +
framework/db/conditions/BetweenCondition.php | 1 +
.../db/conditions/BetweenConditionBuilder.php | 1 +
.../db/conditions/ConditionInterface.php | 1 +
.../db/conditions/ConjunctionCondition.php | 1 +
.../ConjunctionConditionBuilder.php | 1 +
framework/db/conditions/ExistsCondition.php | 1 +
.../db/conditions/ExistsConditionBuilder.php | 1 +
framework/db/conditions/HashCondition.php | 1 +
.../db/conditions/HashConditionBuilder.php | 1 +
framework/db/conditions/InCondition.php | 1 +
.../db/conditions/InConditionBuilder.php | 1 +
framework/db/conditions/LikeCondition.php | 1 +
.../db/conditions/LikeConditionBuilder.php | 1 +
framework/db/conditions/NotCondition.php | 1 +
.../db/conditions/NotConditionBuilder.php | 1 +
framework/db/conditions/OrCondition.php | 1 +
framework/db/conditions/SimpleCondition.php | 1 +
.../db/conditions/SimpleConditionBuilder.php | 1 +
framework/db/cubrid/ColumnSchemaBuilder.php | 1 +
framework/db/cubrid/QueryBuilder.php | 1 +
framework/db/cubrid/Schema.php | 1 +
.../conditions/LikeConditionBuilder.php | 1 +
framework/db/mssql/ColumnSchema.php | 1 +
framework/db/mssql/ColumnSchemaBuilder.php | 1 +
framework/db/mssql/DBLibPDO.php | 1 +
framework/db/mssql/PDO.php | 1 +
framework/db/mssql/QueryBuilder.php | 1 +
framework/db/mssql/Schema.php | 1 +
framework/db/mssql/SqlsrvPDO.php | 1 +
framework/db/mssql/TableSchema.php | 1 +
.../mssql/conditions/InConditionBuilder.php | 1 +
.../mssql/conditions/LikeConditionBuilder.php | 1 +
framework/db/mysql/ColumnSchema.php | 1 +
framework/db/mysql/ColumnSchemaBuilder.php | 1 +
framework/db/mysql/JsonExpressionBuilder.php | 1 +
framework/db/mysql/QueryBuilder.php | 1 +
framework/db/mysql/Schema.php | 1 +
framework/db/oci/ColumnSchemaBuilder.php | 1 +
framework/db/oci/Command.php | 1 +
framework/db/oci/QueryBuilder.php | 1 +
framework/db/oci/Schema.php | 1 +
.../db/oci/conditions/InConditionBuilder.php | 1 +
.../oci/conditions/LikeConditionBuilder.php | 1 +
framework/db/pgsql/ArrayExpressionBuilder.php | 1 +
framework/db/pgsql/ArrayParser.php | 1 +
framework/db/pgsql/ColumnSchema.php | 1 +
framework/db/pgsql/JsonExpressionBuilder.php | 1 +
framework/db/pgsql/QueryBuilder.php | 1 +
framework/db/pgsql/Schema.php | 1 +
framework/db/sqlite/ColumnSchemaBuilder.php | 1 +
framework/db/sqlite/Command.php | 1 +
framework/db/sqlite/QueryBuilder.php | 1 +
framework/db/sqlite/Schema.php | 1 +
framework/db/sqlite/SqlTokenizer.php | 1 +
.../sqlite/conditions/InConditionBuilder.php | 1 +
.../conditions/LikeConditionBuilder.php | 1 +
framework/di/Container.php | 1 +
framework/di/Instance.php | 1 +
framework/di/NotInstantiableException.php | 1 +
framework/di/ServiceLocator.php | 1 +
framework/filters/AccessControl.php | 1 +
framework/filters/AccessRule.php | 1 +
framework/filters/AjaxFilter.php | 1 +
framework/filters/ContentNegotiator.php | 1 +
framework/filters/Cors.php | 1 +
framework/filters/HostControl.php | 1 +
framework/filters/HttpCache.php | 1 +
framework/filters/PageCache.php | 1 +
framework/filters/RateLimitInterface.php | 1 +
framework/filters/RateLimiter.php | 1 +
framework/filters/VerbFilter.php | 1 +
framework/filters/auth/AuthInterface.php | 1 +
framework/filters/auth/AuthMethod.php | 1 +
framework/filters/auth/CompositeAuth.php | 1 +
framework/filters/auth/HttpBasicAuth.php | 1 +
framework/filters/auth/HttpBearerAuth.php | 1 +
framework/filters/auth/HttpHeaderAuth.php | 1 +
framework/filters/auth/QueryParamAuth.php | 1 +
framework/grid/ActionColumn.php | 1 +
framework/grid/CheckboxColumn.php | 1 +
framework/grid/Column.php | 1 +
framework/grid/DataColumn.php | 1 +
framework/grid/GridView.php | 1 +
framework/grid/GridViewAsset.php | 1 +
framework/grid/RadioButtonColumn.php | 1 +
framework/grid/SerialColumn.php | 1 +
framework/helpers/ArrayHelper.php | 1 +
framework/helpers/BaseArrayHelper.php | 1 +
framework/helpers/BaseConsole.php | 1 +
framework/helpers/BaseFileHelper.php | 1 +
framework/helpers/BaseFormatConverter.php | 1 +
framework/helpers/BaseHtml.php | 1 +
framework/helpers/BaseHtmlPurifier.php | 1 +
framework/helpers/BaseInflector.php | 1 +
framework/helpers/BaseIpHelper.php | 1 +
framework/helpers/BaseJson.php | 1 +
framework/helpers/BaseMarkdown.php | 1 +
framework/helpers/BaseStringHelper.php | 1 +
framework/helpers/BaseUrl.php | 1 +
framework/helpers/BaseVarDumper.php | 1 +
framework/helpers/Console.php | 1 +
framework/helpers/FileHelper.php | 1 +
framework/helpers/FormatConverter.php | 1 +
framework/helpers/Html.php | 1 +
framework/helpers/HtmlPurifier.php | 1 +
framework/helpers/Inflector.php | 1 +
framework/helpers/IpHelper.php | 1 +
framework/helpers/Json.php | 1 +
framework/helpers/Markdown.php | 1 +
framework/helpers/ReplaceArrayValue.php | 1 +
framework/helpers/StringHelper.php | 1 +
framework/helpers/UnsetArrayValue.php | 1 +
framework/helpers/Url.php | 1 +
framework/helpers/VarDumper.php | 1 +
framework/helpers/mimeAliases.php | 2 +
framework/helpers/mimeExtensions.php | 2 +
framework/helpers/mimeTypes.php | 2 +
framework/i18n/DbMessageSource.php | 1 +
framework/i18n/Formatter.php | 1 +
framework/i18n/GettextFile.php | 1 +
framework/i18n/GettextMessageSource.php | 1 +
framework/i18n/GettextMoFile.php | 1 +
framework/i18n/GettextPoFile.php | 1 +
framework/i18n/I18N.php | 1 +
framework/i18n/Locale.php | 1 +
framework/i18n/MessageFormatter.php | 1 +
framework/i18n/MessageSource.php | 1 +
framework/i18n/MissingTranslationEvent.php | 1 +
framework/i18n/PhpMessageSource.php | 1 +
framework/log/DbTarget.php | 1 +
framework/log/Dispatcher.php | 1 +
framework/log/EmailTarget.php | 1 +
framework/log/FileTarget.php | 1 +
framework/log/LogRuntimeException.php | 1 +
framework/log/Logger.php | 1 +
framework/log/SyslogTarget.php | 1 +
framework/log/Target.php | 1 +
framework/mail/BaseMailer.php | 1 +
framework/mail/BaseMessage.php | 1 +
framework/mail/MailEvent.php | 1 +
framework/mail/MailerInterface.php | 1 +
framework/mail/MessageInterface.php | 1 +
framework/messages/mt/yii.php | 2 +
framework/mutex/DbMutex.php | 1 +
framework/mutex/FileMutex.php | 1 +
framework/mutex/Mutex.php | 1 +
framework/mutex/MysqlMutex.php | 1 +
framework/mutex/OracleMutex.php | 1 +
framework/mutex/PgsqlMutex.php | 1 +
framework/mutex/RetryAcquireTrait.php | 1 +
framework/rbac/Assignment.php | 1 +
framework/rbac/BaseManager.php | 1 +
framework/rbac/CheckAccessInterface.php | 1 +
framework/rbac/DbManager.php | 1 +
framework/rbac/Item.php | 1 +
framework/rbac/ManagerInterface.php | 1 +
framework/rbac/Permission.php | 1 +
framework/rbac/PhpManager.php | 1 +
framework/rbac/Role.php | 1 +
framework/rbac/Rule.php | 1 +
framework/rest/Action.php | 1 +
framework/rest/ActiveController.php | 1 +
framework/rest/Controller.php | 1 +
framework/rest/CreateAction.php | 1 +
framework/rest/DeleteAction.php | 1 +
framework/rest/IndexAction.php | 1 +
framework/rest/OptionsAction.php | 1 +
framework/rest/Serializer.php | 1 +
framework/rest/UpdateAction.php | 1 +
framework/rest/UrlRule.php | 1 +
framework/rest/ViewAction.php | 1 +
framework/test/ActiveFixture.php | 1 +
framework/test/ArrayFixture.php | 1 +
framework/test/BaseActiveFixture.php | 1 +
framework/test/DbFixture.php | 1 +
framework/test/FileFixtureTrait.php | 1 +
framework/test/Fixture.php | 1 +
framework/test/FixtureTrait.php | 1 +
framework/test/InitDbFixture.php | 1 +
framework/validators/BooleanValidator.php | 1 +
framework/validators/CompareValidator.php | 1 +
framework/validators/DateValidator.php | 1 +
.../validators/DefaultValueValidator.php | 1 +
framework/validators/EachValidator.php | 1 +
framework/validators/EmailValidator.php | 1 +
framework/validators/ExistValidator.php | 1 +
framework/validators/FileValidator.php | 1 +
framework/validators/FilterValidator.php | 1 +
framework/validators/ImageValidator.php | 1 +
framework/validators/InlineValidator.php | 1 +
framework/validators/IpValidator.php | 1 +
framework/validators/NumberValidator.php | 1 +
framework/validators/PunycodeAsset.php | 1 +
framework/validators/RangeValidator.php | 1 +
.../validators/RegularExpressionValidator.php | 1 +
framework/validators/RequiredValidator.php | 1 +
framework/validators/SafeValidator.php | 1 +
framework/validators/StringValidator.php | 1 +
framework/validators/TrimValidator.php | 1 +
framework/validators/UniqueValidator.php | 1 +
framework/validators/UrlValidator.php | 1 +
framework/validators/ValidationAsset.php | 1 +
framework/validators/Validator.php | 1 +
framework/web/Application.php | 1 +
framework/web/AssetBundle.php | 1 +
framework/web/AssetConverter.php | 1 +
framework/web/AssetConverterInterface.php | 1 +
framework/web/AssetManager.php | 1 +
framework/web/BadRequestHttpException.php | 1 +
framework/web/CacheSession.php | 1 +
framework/web/CompositeUrlRule.php | 1 +
framework/web/ConflictHttpException.php | 1 +
framework/web/Controller.php | 1 +
framework/web/Cookie.php | 1 +
framework/web/CookieCollection.php | 1 +
framework/web/DbSession.php | 1 +
framework/web/ErrorAction.php | 1 +
framework/web/ErrorHandler.php | 1 +
framework/web/ForbiddenHttpException.php | 1 +
framework/web/GoneHttpException.php | 1 +
framework/web/GroupUrlRule.php | 1 +
framework/web/HeaderCollection.php | 1 +
framework/web/HeadersAlreadySentException.php | 1 +
framework/web/HtmlResponseFormatter.php | 1 +
framework/web/HttpException.php | 1 +
framework/web/IdentityInterface.php | 1 +
framework/web/JqueryAsset.php | 1 +
framework/web/JsExpression.php | 1 +
framework/web/JsonParser.php | 1 +
framework/web/JsonResponseFormatter.php | 1 +
framework/web/Link.php | 1 +
framework/web/Linkable.php | 1 +
.../web/MethodNotAllowedHttpException.php | 1 +
framework/web/MultiFieldSession.php | 1 +
framework/web/MultipartFormDataParser.php | 1 +
framework/web/NotAcceptableHttpException.php | 1 +
framework/web/NotFoundHttpException.php | 1 +
.../web/RangeNotSatisfiableHttpException.php | 1 +
framework/web/Request.php | 1 +
framework/web/RequestParserInterface.php | 1 +
framework/web/Response.php | 1 +
framework/web/ResponseFormatterInterface.php | 1 +
framework/web/ServerErrorHttpException.php | 1 +
framework/web/Session.php | 1 +
framework/web/SessionHandler.php | 1 +
framework/web/SessionIterator.php | 1 +
.../web/TooManyRequestsHttpException.php | 1 +
framework/web/UnauthorizedHttpException.php | 1 +
.../web/UnprocessableEntityHttpException.php | 1 +
.../web/UnsupportedMediaTypeHttpException.php | 1 +
framework/web/UploadedFile.php | 1 +
framework/web/UrlManager.php | 1 +
framework/web/UrlNormalizer.php | 1 +
.../web/UrlNormalizerRedirectException.php | 1 +
framework/web/UrlRule.php | 1 +
framework/web/UrlRuleInterface.php | 1 +
framework/web/User.php | 1 +
framework/web/UserEvent.php | 1 +
framework/web/View.php | 1 +
framework/web/ViewAction.php | 1 +
framework/web/XmlResponseFormatter.php | 1 +
framework/web/YiiAsset.php | 1 +
framework/widgets/ActiveField.php | 1 +
framework/widgets/ActiveForm.php | 1 +
framework/widgets/ActiveFormAsset.php | 1 +
framework/widgets/BaseListView.php | 1 +
framework/widgets/Block.php | 1 +
framework/widgets/Breadcrumbs.php | 1 +
framework/widgets/ContentDecorator.php | 1 +
framework/widgets/DetailView.php | 1 +
framework/widgets/FragmentCache.php | 1 +
framework/widgets/InputWidget.php | 1 +
framework/widgets/LinkPager.php | 1 +
framework/widgets/LinkSorter.php | 1 +
framework/widgets/ListView.php | 1 +
framework/widgets/MaskedInput.php | 1 +
framework/widgets/MaskedInputAsset.php | 1 +
framework/widgets/Menu.php | 1 +
framework/widgets/Pjax.php | 1 +
framework/widgets/PjaxAsset.php | 1 +
framework/widgets/Spaceless.php | 1 +
phpcs.xml.dist | 5 +
tests/bootstrap.php | 1 +
tests/data/ar/ActiveRecord.php | 1 +
tests/data/ar/Alpha.php | 1 +
tests/data/ar/Beta.php | 1 +
tests/data/ar/BitValues.php | 1 +
tests/data/ar/Category.php | 1 +
tests/data/ar/CroppedType.php | 1 +
tests/data/ar/DefaultMultiplePk.php | 1 +
tests/data/ar/DefaultPk.php | 1 +
tests/data/ar/Document.php | 1 +
tests/data/ar/Item.php | 1 +
tests/data/ar/NullValues.php | 1 +
tests/data/ar/Order.php | 1 +
tests/data/ar/OrderItem.php | 1 +
tests/data/ar/OrderItemWithNullFK.php | 1 +
tests/data/ar/OrderWithNullFK.php | 1 +
tests/data/ar/Profile.php | 1 +
tests/data/ar/Storage.php | 1 +
tests/data/ar/TestTrigger.php | 1 +
tests/data/ar/TestTriggerAlert.php | 1 +
tests/data/ar/Type.php | 1 +
tests/data/base/CallableClass.php | 1 +
tests/data/base/InvalidRulesModel.php | 1 +
tests/data/base/RulesModel.php | 1 +
tests/data/base/Singer.php | 1 +
tests/data/cache/MockDependency.php | 1 +
tests/data/config-docker.php | 1 +
tests/data/config.php | 1 +
.../console/controllers/FakeController.php | 1 +
.../controllers/FakeEmptyController.php | 1 +
.../controllers/FakeNoDefaultController.php | 1 +
.../console/migrate_create/add_columns_fk.php | 1 +
.../migrate_create/add_columns_prefix.php | 1 +
.../migrate_create/add_columns_test.php | 1 +
.../migrate_create/add_two_columns_test.php | 1 +
...create_field_with_colon_default_values.php | 1 +
.../console/migrate_create/create_fields.php | 1 +
...ds_with_col_method_after_default_value.php | 1 +
.../migrate_create/create_foreign_key.php | 1 +
.../create_id_field_not_as_pk.php | 1 +
.../console/migrate_create/create_id_pk.php | 1 +
.../console/migrate_create/create_prefix.php | 1 +
.../create_products_from_store_table.php | 1 +
.../console/migrate_create/create_test.php | 1 +
.../migrate_create/create_title_pk.php | 1 +
...create_title_with_comma_default_values.php | 1 +
.../migrate_create/create_unsigned_big_pk.php | 1 +
.../migrate_create/create_unsigned_pk.php | 1 +
tests/data/console/migrate_create/default.php | 1 +
.../migrate_create/drop_columns_test.php | 1 +
.../console/migrate_create/drop_fields.php | 1 +
.../drop_products_from_store_table.php | 1 +
.../data/console/migrate_create/drop_test.php | 1 +
.../console/migrate_create/junction_test.php | 1 +
tests/data/helpers/CustomDebugInfo.php | 1 +
tests/data/i18n/messages/de-DE/test.php | 1 +
tests/data/i18n/messages/de/test.php | 1 +
tests/data/i18n/messages/en-150/test.php | 1 +
tests/data/i18n/messages/en-US/test.php | 1 +
tests/data/i18n/messages/ru/test.php | 1 +
tests/data/modules/magic/Module.php | 1 +
tests/data/rbac/UserID.php | 1 +
.../models/FakedValidationModel.php | 1 +
.../models/FakedValidationTypedModel.php | 1 +
.../ValidatorTestEachAndInlineMethodModel.php | 1 +
.../models/ValidatorTestFunctionModel.php | 1 +
.../models/ValidatorTestMainModel.php | 1 +
.../models/ValidatorTestRefModel.php | 1 +
.../models/ValidatorTestTypedPropModel.php | 1 +
tests/framework/web/FakePhp80Controller.php | 1 +
515 files changed, 597 insertions(+), 109 deletions(-)
rename .github/workflows/{lint.yaml => linter.yaml} (51%)
diff --git a/.github/workflows/lint.yaml b/.github/workflows/linter.yaml
similarity index 51%
rename from .github/workflows/lint.yaml
rename to .github/workflows/linter.yaml
index dd1861d3d3..0bd1b81433 100644
--- a/.github/workflows/lint.yaml
+++ b/.github/workflows/linter.yaml
@@ -1,5 +1,4 @@
----
-name: lint
+name: linter
permissions:
contents: read
@@ -35,35 +34,9 @@ on:
push: *ignore-paths
-concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
-
jobs:
phpcs:
- runs-on: ubuntu-latest
-
- name: PHP ${{ matrix.php }}-PHP_CodeSniffer
-
- strategy:
- fail-fast: false
- matrix:
- php: [8.4]
-
- steps:
- - name: Monitor action permissions.
- if: runner.os != 'Windows'
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
-
- - name: Checkout.
- uses: actions/checkout@v5
-
- - name: Setup PHP with Composer.
- uses: ./.github/actions/php-setup
- with:
- composer-command: install
- php-version: ${{ matrix.php }}
- tools: cs2pr
-
- - name: Run PHP_CodeSniffer.
- run: vendor/bin/phpcs -q --report=checkstyle framework/ tests/ build/ | cs2pr
+ uses: yiisoft/yii2-actions/.github/workflows/linter.yml@master
+ with:
+ directories: framework/ tests/ build/
+ php-version: '["7.4", "8.5"]'
diff --git a/build/controllers/ClassmapController.php b/build/controllers/ClassmapController.php
index 4777a1de26..7b8d270bad 100644
--- a/build/controllers/ClassmapController.php
+++ b/build/controllers/ClassmapController.php
@@ -1,4 +1,5 @@
=1.8"
@@ -147,20 +147,20 @@
},
{
"name": "ezyang/htmlpurifier",
- "version": "v4.18.0",
+ "version": "v4.19.0",
"source": {
"type": "git",
"url": "https://github.com/ezyang/htmlpurifier.git",
- "reference": "cb56001e54359df7ae76dc522d08845dc741621b"
+ "reference": "b287d2a16aceffbf6e0295559b39662612b77fcf"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/cb56001e54359df7ae76dc522d08845dc741621b",
- "reference": "cb56001e54359df7ae76dc522d08845dc741621b",
+ "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/b287d2a16aceffbf6e0295559b39662612b77fcf",
+ "reference": "b287d2a16aceffbf6e0295559b39662612b77fcf",
"shasum": ""
},
"require": {
- "php": "~5.6.0 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0"
+ "php": "~5.6.0 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0"
},
"require-dev": {
"cerdic/css-tidy": "^1.7 || ^2.0",
@@ -202,9 +202,9 @@
],
"support": {
"issues": "https://github.com/ezyang/htmlpurifier/issues",
- "source": "https://github.com/ezyang/htmlpurifier/tree/v4.18.0"
+ "source": "https://github.com/ezyang/htmlpurifier/tree/v4.19.0"
},
- "time": "2024-11-01T03:51:45+00:00"
+ "time": "2025-10-17T16:34:55+00:00"
},
{
"name": "yiisoft/yii2-composer",
@@ -323,29 +323,29 @@
},
{
"name": "dealerdirect/phpcodesniffer-composer-installer",
- "version": "v1.1.2",
+ "version": "v1.2.0",
"source": {
"type": "git",
"url": "https://github.com/PHPCSStandards/composer-installer.git",
- "reference": "e9cf5e4bbf7eeaf9ef5db34938942602838fc2b1"
+ "reference": "845eb62303d2ca9b289ef216356568ccc075ffd1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/e9cf5e4bbf7eeaf9ef5db34938942602838fc2b1",
- "reference": "e9cf5e4bbf7eeaf9ef5db34938942602838fc2b1",
+ "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/845eb62303d2ca9b289ef216356568ccc075ffd1",
+ "reference": "845eb62303d2ca9b289ef216356568ccc075ffd1",
"shasum": ""
},
"require": {
"composer-plugin-api": "^2.2",
"php": ">=5.4",
- "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0"
+ "squizlabs/php_codesniffer": "^3.1.0 || ^4.0"
},
"require-dev": {
"composer/composer": "^2.2",
"ext-json": "*",
"ext-zip": "*",
"php-parallel-lint/php-parallel-lint": "^1.4.0",
- "phpcompatibility/php-compatibility": "^9.0",
+ "phpcompatibility/php-compatibility": "^9.0 || ^10.0.0@dev",
"yoast/phpunit-polyfills": "^1.0"
},
"type": "composer-plugin",
@@ -415,7 +415,7 @@
"type": "thanks_dev"
}
],
- "time": "2025-07-17T20:45:56+00:00"
+ "time": "2025-11-11T04:32:07+00:00"
},
{
"name": "dms/phpunit-arraysubset-asserts",
@@ -463,30 +463,29 @@
},
{
"name": "doctrine/instantiator",
- "version": "1.5.0",
+ "version": "2.1.0",
"source": {
"type": "git",
"url": "https://github.com/doctrine/instantiator.git",
- "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b"
+ "reference": "23da848e1a2308728fe5fdddabf4be17ff9720c7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b",
- "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b",
+ "url": "https://api.github.com/repos/doctrine/instantiator/zipball/23da848e1a2308728fe5fdddabf4be17ff9720c7",
+ "reference": "23da848e1a2308728fe5fdddabf4be17ff9720c7",
"shasum": ""
},
"require": {
- "php": "^7.1 || ^8.0"
+ "php": "^8.4"
},
"require-dev": {
- "doctrine/coding-standard": "^9 || ^11",
+ "doctrine/coding-standard": "^14",
"ext-pdo": "*",
"ext-phar": "*",
- "phpbench/phpbench": "^0.16 || ^1",
- "phpstan/phpstan": "^1.4",
- "phpstan/phpstan-phpunit": "^1",
- "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
- "vimeo/psalm": "^4.30 || ^5.4"
+ "phpbench/phpbench": "^1.2",
+ "phpstan/phpstan": "^2.1",
+ "phpstan/phpstan-phpunit": "^2.0",
+ "phpunit/phpunit": "^10.5.58"
},
"type": "library",
"autoload": {
@@ -513,7 +512,7 @@
],
"support": {
"issues": "https://github.com/doctrine/instantiator/issues",
- "source": "https://github.com/doctrine/instantiator/tree/1.5.0"
+ "source": "https://github.com/doctrine/instantiator/tree/2.1.0"
},
"funding": [
{
@@ -529,7 +528,7 @@
"type": "tidelift"
}
],
- "time": "2022-12-30T00:15:36+00:00"
+ "time": "2026-01-05T06:47:08+00:00"
},
{
"name": "myclabs/deep-copy",
@@ -593,16 +592,16 @@
},
{
"name": "nikic/php-parser",
- "version": "v5.6.1",
+ "version": "v5.7.0",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2"
+ "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2",
- "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2",
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/dca41cd15c2ac9d055ad70dbfd011130757d1f82",
+ "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82",
"shasum": ""
},
"require": {
@@ -645,9 +644,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
- "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.1"
+ "source": "https://github.com/nikic/PHP-Parser/tree/v5.7.0"
},
- "time": "2025-08-13T20:13:15+00:00"
+ "time": "2025-12-06T11:56:16+00:00"
},
{
"name": "phar-io/manifest",
@@ -769,11 +768,11 @@
},
{
"name": "phpstan/phpstan",
- "version": "2.1.35",
+ "version": "2.1.37",
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpstan/phpstan/zipball/72f843c7f59d3aac0b7510f5e70913a9b72a8e88",
- "reference": "72f843c7f59d3aac0b7510f5e70913a9b72a8e88",
+ "url": "https://api.github.com/repos/phpstan/phpstan/zipball/28cd424c5ea984128c95cfa7ea658808e8954e49",
+ "reference": "28cd424c5ea984128c95cfa7ea658808e8954e49",
"shasum": ""
},
"require": {
@@ -818,7 +817,7 @@
"type": "github"
}
],
- "time": "2026-01-20T17:33:48+00:00"
+ "time": "2026-01-24T08:21:55+00:00"
},
{
"name": "phpunit/php-code-coverage",
@@ -1141,16 +1140,16 @@
},
{
"name": "phpunit/phpunit",
- "version": "9.6.29",
+ "version": "9.6.32",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "9ecfec57835a5581bc888ea7e13b51eb55ab9dd3"
+ "reference": "492ee10a8369a1c1ac390a3b46e0c846e384c5a4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9ecfec57835a5581bc888ea7e13b51eb55ab9dd3",
- "reference": "9ecfec57835a5581bc888ea7e13b51eb55ab9dd3",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/492ee10a8369a1c1ac390a3b46e0c846e384c5a4",
+ "reference": "492ee10a8369a1c1ac390a3b46e0c846e384c5a4",
"shasum": ""
},
"require": {
@@ -1172,7 +1171,7 @@
"phpunit/php-timer": "^5.0.3",
"sebastian/cli-parser": "^1.0.2",
"sebastian/code-unit": "^1.0.8",
- "sebastian/comparator": "^4.0.9",
+ "sebastian/comparator": "^4.0.10",
"sebastian/diff": "^4.0.6",
"sebastian/environment": "^5.1.5",
"sebastian/exporter": "^4.0.8",
@@ -1224,7 +1223,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
- "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.29"
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.32"
},
"funding": [
{
@@ -1248,7 +1247,7 @@
"type": "tidelift"
}
],
- "time": "2025-09-24T06:29:11+00:00"
+ "time": "2026-01-24T16:04:20+00:00"
},
{
"name": "sebastian/cli-parser",
@@ -1419,16 +1418,16 @@
},
{
"name": "sebastian/comparator",
- "version": "4.0.9",
+ "version": "4.0.10",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5"
+ "reference": "e4df00b9b3571187db2831ae9aada2c6efbd715d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/67a2df3a62639eab2cc5906065e9805d4fd5dfc5",
- "reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5",
+ "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/e4df00b9b3571187db2831ae9aada2c6efbd715d",
+ "reference": "e4df00b9b3571187db2831ae9aada2c6efbd715d",
"shasum": ""
},
"require": {
@@ -1481,7 +1480,7 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/comparator/issues",
- "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.9"
+ "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.10"
},
"funding": [
{
@@ -1501,7 +1500,7 @@
"type": "tidelift"
}
],
- "time": "2025-08-10T06:51:50+00:00"
+ "time": "2026-01-24T09:22:56+00:00"
},
{
"name": "sebastian/complexity",
@@ -2263,37 +2262,32 @@
},
{
"name": "squizlabs/php_codesniffer",
- "version": "3.13.2",
+ "version": "4.0.1",
"source": {
"type": "git",
"url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
- "reference": "5b5e3821314f947dd040c70f7992a64eac89025c"
+ "reference": "0525c73950de35ded110cffafb9892946d7771b5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/5b5e3821314f947dd040c70f7992a64eac89025c",
- "reference": "5b5e3821314f947dd040c70f7992a64eac89025c",
+ "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/0525c73950de35ded110cffafb9892946d7771b5",
+ "reference": "0525c73950de35ded110cffafb9892946d7771b5",
"shasum": ""
},
"require": {
"ext-simplexml": "*",
"ext-tokenizer": "*",
"ext-xmlwriter": "*",
- "php": ">=5.4.0"
+ "php": ">=7.2.0"
},
"require-dev": {
- "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
+ "phpunit/phpunit": "^8.4.0 || ^9.3.4 || ^10.5.32 || 11.3.3 - 11.5.28 || ^11.5.31"
},
"bin": [
"bin/phpcbf",
"bin/phpcs"
],
"type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
@@ -2312,7 +2306,7 @@
"homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors"
}
],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
+ "description": "PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.",
"homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
"keywords": [
"phpcs",
@@ -2343,20 +2337,20 @@
"type": "thanks_dev"
}
],
- "time": "2025-06-17T22:17:01+00:00"
+ "time": "2025-11-10T16:43:36+00:00"
},
{
"name": "theseer/tokenizer",
- "version": "1.2.3",
+ "version": "1.3.1",
"source": {
"type": "git",
"url": "https://github.com/theseer/tokenizer.git",
- "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2"
+ "reference": "b7489ce515e168639d17feec34b8847c326b0b3c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2",
- "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2",
+ "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b7489ce515e168639d17feec34b8847c326b0b3c",
+ "reference": "b7489ce515e168639d17feec34b8847c326b0b3c",
"shasum": ""
},
"require": {
@@ -2385,7 +2379,7 @@
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
"support": {
"issues": "https://github.com/theseer/tokenizer/issues",
- "source": "https://github.com/theseer/tokenizer/tree/1.2.3"
+ "source": "https://github.com/theseer/tokenizer/tree/1.3.1"
},
"funding": [
{
@@ -2393,7 +2387,7 @@
"type": "github"
}
],
- "time": "2024-03-03T12:36:25+00:00"
+ "time": "2025-11-17T20:03:58+00:00"
},
{
"name": "yiisoft/yii2-coding-standards",
diff --git a/framework/BaseYii.php b/framework/BaseYii.php
index 4b3495aa90..8bed8d8468 100644
--- a/framework/BaseYii.php
+++ b/framework/BaseYii.php
@@ -1,4 +1,5 @@
'application/rtf',
'text/xml' => 'application/xml',
diff --git a/framework/helpers/mimeExtensions.php b/framework/helpers/mimeExtensions.php
index c9e0ed1928..a21a1eba85 100644
--- a/framework/helpers/mimeExtensions.php
+++ b/framework/helpers/mimeExtensions.php
@@ -1,4 +1,5 @@
'ez',
'application/applixware' => 'aw',
diff --git a/framework/helpers/mimeTypes.php b/framework/helpers/mimeTypes.php
index 7b71a9ab8b..33ff5cca64 100644
--- a/framework/helpers/mimeTypes.php
+++ b/framework/helpers/mimeTypes.php
@@ -1,4 +1,5 @@
'application/vnd.lotus-1-2-3',
'3dml' => 'text/vnd.in3d.3dml',
diff --git a/framework/i18n/DbMessageSource.php b/framework/i18n/DbMessageSource.php
index 3d44e73fca..822f3167d7 100644
--- a/framework/i18n/DbMessageSource.php
+++ b/framework/i18n/DbMessageSource.php
@@ -1,4 +1,5 @@
' u ',
'"{attribute}" does not support operator "{operator}".' => '"{attribute}" ma jappoġġjax l-operatur "{operator}".',
diff --git a/framework/mutex/DbMutex.php b/framework/mutex/DbMutex.php
index 593cff4e08..f6269fbba4 100644
--- a/framework/mutex/DbMutex.php
+++ b/framework/mutex/DbMutex.php
@@ -1,4 +1,5 @@
+ framework/caching/migrations/*
+ framework/i18n/migrations/*
+ framework/log/migrations/*
+ framework/rbac/migrations/*
framework/views/*
+ framework/web/migrations/*
tests/data/views/*
tests/js/*
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index dd94b577b9..2e05c4c3a9 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -1,4 +1,5 @@