Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: yiisoft/yii2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 28dc47649beedd6ed538a7e07c33fa500afb420f
Choose a base ref
..
head repository: yiisoft/yii2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 838dd650820dcc4984ae0dac5da8e6c2042e321b
Choose a head ref
Showing with 1,964 additions and 1,522 deletions.
  1. +2 −2 .appveyor.yml
  2. +10 −43 .github/workflows/build.yml
  3. +1 −5 .github/workflows/ci-mssql.yml
  4. +2 −6 .github/workflows/ci-mysql.yml
  5. +2 −6 .github/workflows/ci-pgsql.yml
  6. +1 −5 .github/workflows/ci-sqlite.yml
  7. +1 −1 .scrutinizer.yml
  8. +2 −2 README.md
  9. +3 −18 composer.json
  10. +1,028 −487 composer.lock
  11. +1 −1 docs/guide-ar/intro-yii.md
  12. +1 −1 docs/guide-es/intro-yii.md
  13. +1 −1 docs/guide-fr/intro-yii.md
  14. +1 −1 docs/guide-id/intro-yii.md
  15. +1 −1 docs/guide-it/intro-yii.md
  16. +1 −1 docs/guide-ja/intro-yii.md
  17. +1 −1 docs/guide-pl/intro-yii.md
  18. +1 −1 docs/guide-pt-BR/intro-yii.md
  19. +1 −1 docs/guide-ru/intro-yii.md
  20. +1 −1 docs/guide-tr/intro-yii.md
  21. +1 −1 docs/guide-uk/intro-yii.md
  22. +1 −1 docs/guide-uz/intro-yii.md
  23. +1 −1 docs/guide-vi/intro-yii.md
  24. +1 −1 docs/guide-zh-CN/intro-yii.md
  25. +1 −1 docs/guide/intro-yii.md
  26. +1 −0 framework/CHANGELOG.md
  27. +0 −31 framework/base/Object.php
  28. +1 −1 framework/composer.json
  29. +2 −2 framework/requirements/requirements.php
  30. +4 −0 framework/web/View.php
  31. +33 −28 phpunit.xml.dist
  32. +12 −16 tests/IsOneOfAssert.php
  33. +9 −3 tests/ResultPrinter.php
  34. +3 −3 tests/TestCase.php
  35. +0 −1 tests/bootstrap.php
  36. +0 −75 tests/compatibility.php
  37. +3 −3 tests/framework/BaseYiiTest.php
  38. +4 −1 tests/framework/ChangeLogTest.php
  39. +1 −1 tests/framework/base/ActionFilterTest.php
  40. +2 −15 tests/framework/base/BaseObjectTest.php
  41. +2 −2 tests/framework/base/BehaviorTest.php
  42. +2 −7 tests/framework/base/ComponentTest.php
  43. +1 −1 tests/framework/base/DynamicModelTest.php
  44. +2 −2 tests/framework/base/EventTest.php
  45. +1 −6 tests/framework/base/ModelTest.php
  46. +1 −1 tests/framework/base/ModuleTest.php
  47. +13 −11 tests/framework/base/SecurityTest.php
  48. +1 −1 tests/framework/base/ThemeTest.php
  49. +2 −2 tests/framework/base/ViewTest.php
  50. +1 −1 tests/framework/base/WidgetTest.php
  51. +3 −3 tests/framework/behaviors/AttributeBehaviorTest.php
  52. +3 −3 tests/framework/behaviors/AttributeTypecastBehaviorTest.php
  53. +3 −3 tests/framework/behaviors/AttributesBehaviorTest.php
  54. +3 −3 tests/framework/behaviors/BlameableBehaviorConsoleTest.php
  55. +3 −3 tests/framework/behaviors/BlameableBehaviorTest.php
  56. +1 −1 tests/framework/behaviors/CacheableWidgetBehaviorTest.php
  57. +8 −8 tests/framework/behaviors/OptimisticLockBehaviorTest.php
  58. +3 −3 tests/framework/behaviors/SluggableBehaviorTest.php
  59. +3 −3 tests/framework/behaviors/TimestampBehaviorTest.php
  60. +2 −2 tests/framework/caching/CacheTestCase.php
  61. +1 −1 tests/framework/caching/DbCacheTest.php
  62. +1 −1 tests/framework/caching/DbDependencyTest.php
  63. +1 −1 tests/framework/caching/DbQueryDependencyTest.php
  64. +1 −36 tests/framework/caching/FileCacheTest.php
  65. +1 −1 tests/framework/caching/MssqlCacheTest.php
  66. +1 −1 tests/framework/caching/PgSQLCacheTest.php
  67. +2 −23 tests/framework/console/ControllerTest.php
  68. +1 −1 tests/framework/console/UnknownCommandExceptionTest.php
  69. +20 −8 tests/framework/console/controllers/AssetControllerTest.php
  70. +2 −2 tests/framework/console/controllers/BaseMessageControllerTest.php
  71. +4 −4 tests/framework/console/controllers/CacheControllerTest.php
  72. +3 −3 tests/framework/console/controllers/DbMessageControllerTest.php
  73. +4 −8 tests/framework/console/controllers/FixtureControllerTest.php
  74. +29 −29 tests/framework/console/controllers/HelpControllerTest.php
  75. +9 −9 tests/framework/console/controllers/MigrateControllerTest.php
  76. +13 −13 tests/framework/console/controllers/MigrateControllerTestTrait.php
  77. +3 −3 tests/framework/console/controllers/PHPMessageControllerTest.php
  78. +2 −2 tests/framework/console/controllers/POMessageControllerTest.php
  79. +11 −11 tests/framework/console/controllers/ServeControllerTest.php
  80. +2 −2 tests/framework/console/widgets/TableTest.php
  81. +1 −1 tests/framework/data/ActiveDataFilterTest.php
  82. +2 −2 tests/framework/data/ActiveDataProviderTest.php
  83. +1 −1 tests/framework/data/ArrayDataProviderTest.php
  84. +1 −1 tests/framework/data/DataFilterTest.php
  85. +1 −1 tests/framework/data/PaginationTest.php
  86. +1 −1 tests/framework/data/SortTest.php
  87. +1 −1 tests/framework/db/ActiveQueryModelConnectionTest.php
  88. +1 −1 tests/framework/db/ActiveQueryTest.php
  89. +14 −24 tests/framework/db/ActiveRecordTest.php
  90. +1 −1 tests/framework/db/BaseActiveRecordTest.php
  91. +1 −1 tests/framework/db/BatchQueryResultTest.php
  92. +17 −16 tests/framework/db/CommandTest.php
  93. +15 −6 tests/framework/db/ConnectionTest.php
  94. +2 −2 tests/framework/db/DatabaseTestCase.php
  95. +1 −2 tests/framework/db/QueryTest.php
  96. +15 −2 tests/framework/db/SchemaTest.php
  97. +30 −0 tests/framework/db/mssql/ActiveRecordTest.php
  98. +4 −3 tests/framework/db/mssql/CommandTest.php
  99. +1 −1 tests/framework/db/mssql/type/VarbinaryTest.php
  100. +30 −0 tests/framework/db/mysql/ActiveRecordTest.php
  101. +4 −0 tests/framework/db/mysql/BaseActiveRecordTest.php
  102. +1 −2 tests/framework/db/mysql/QueryTest.php
  103. +1 −2 tests/framework/db/oci/ActiveRecordTest.php
  104. +2 −0 tests/framework/db/oci/ConnectionTest.php
  105. +1 −1 tests/framework/db/oci/QueryBuilderTest.php
  106. +1 −1 tests/framework/db/pgsql/ArrayParserTest.php
  107. +4 −0 tests/framework/db/pgsql/BaseActiveRecordTest.php
  108. +1 −1 tests/framework/db/pgsql/ConnectionTest.php
  109. +9 −15 tests/framework/di/ContainerTest.php
  110. +7 −4 tests/framework/di/InstanceTest.php
  111. +1 −1 tests/framework/filters/AccessRuleTest.php
  112. +4 −5 tests/framework/filters/ContentNegotiatorTest.php
  113. +1 −1 tests/framework/filters/HostControlTest.php
  114. +1 −1 tests/framework/filters/HttpCacheTest.php
  115. +2 −2 tests/framework/filters/PageCacheTest.php
  116. +10 −4 tests/framework/filters/RateLimiterTest.php
  117. +1 −1 tests/framework/filters/auth/AuthMethodTest.php
  118. +1 −1 tests/framework/filters/auth/AuthTest.php
  119. +1 −1 tests/framework/filters/auth/CompositeAuthTest.php
  120. +5 −5 tests/framework/grid/ActionColumnTest.php
  121. +19 −19 tests/framework/grid/CheckboxColumnTest.php
  122. +3 −3 tests/framework/grid/GridViewTest.php
  123. +5 −6 tests/framework/grid/RadiobuttonColumnTest.php
  124. +7 −8 tests/framework/helpers/ArrayHelperTest.php
  125. +1 −1 tests/framework/helpers/BaseConsoleTest.php
  126. +1 −1 tests/framework/helpers/ConsoleTest.php
  127. +16 −14 tests/framework/helpers/FileHelperTest.php
  128. +3 −3 tests/framework/helpers/FormatConverterTest.php
  129. +21 −21 tests/framework/helpers/HtmlTest.php
  130. +1 −1 tests/framework/helpers/InflectorTest.php
  131. +1 −0 tests/framework/helpers/IpHelperTest.php
  132. +5 −4 tests/framework/helpers/JsonTest.php
  133. +5 −6 tests/framework/helpers/MarkdownTest.php
  134. +1 −1 tests/framework/helpers/StringHelperTest.php
  135. +3 −3 tests/framework/helpers/UrlTest.php
  136. +9 −9 tests/framework/helpers/VarDumperTest.php
  137. +2 −2 tests/framework/i18n/DbMessageSourceTest.php
  138. +12 −12 tests/framework/i18n/FormatterDateTest.php
  139. +2 −2 tests/framework/i18n/FormatterNumberTest.php
  140. +2 −2 tests/framework/i18n/FormatterTest.php
  141. +1 −1 tests/framework/i18n/GettextPoFileTest.php
  142. +1 −1 tests/framework/i18n/I18NTest.php
  143. +2 −2 tests/framework/i18n/LocaleTest.php
  144. +2 −2 tests/framework/log/DbTargetTest.php
  145. +1 −1 tests/framework/log/DispatcherTest.php
  146. +5 −4 tests/framework/log/EmailTargetTest.php
  147. +15 −15 tests/framework/log/FileTargetTest.php
  148. +1 −1 tests/framework/log/LoggerTest.php
  149. +1 −1 tests/framework/log/SyslogTargetTest.php
  150. +17 −17 tests/framework/log/TargetTest.php
  151. +5 −5 tests/framework/mail/BaseMailerTest.php
  152. +1 −1 tests/framework/mail/BaseMessageTest.php
  153. +1 −1 tests/framework/mutex/FileMutexTest.php
  154. +22 −5 tests/framework/rbac/DbManagerTestCase.php
  155. +10 −2 tests/framework/rbac/ManagerTestCase.php
  156. +9 −8 tests/framework/rbac/PhpManagerTest.php
  157. +1 −1 tests/framework/rest/IndexActionTest.php
  158. +1 −1 tests/framework/rest/SerializerTest.php
  159. +4 −3 tests/framework/rest/UrlRuleTest.php
  160. +4 −4 tests/framework/test/ActiveFixtureTest.php
  161. +4 −4 tests/framework/test/ArrayFixtureTest.php
  162. +2 −2 tests/framework/test/FixtureTest.php
  163. +1 −1 tests/framework/validators/BooleanValidatorTest.php
  164. +1 −1 tests/framework/validators/CompareValidatorTest.php
  165. +2 −2 tests/framework/validators/DateValidatorTest.php
  166. +1 −1 tests/framework/validators/DefaultValueValidatorTest.php
  167. +5 −8 tests/framework/validators/EachValidatorTest.php
  168. +1 −1 tests/framework/validators/EmailValidatorTest.php
  169. +1 −1 tests/framework/validators/ExistValidatorTest.php
  170. +5 −3 tests/framework/validators/FileValidatorTest.php
  171. +1 −1 tests/framework/validators/FilterValidatorTest.php
  172. +1 −1 tests/framework/validators/IpValidatorTest.php
  173. +9 −9 tests/framework/validators/NumberValidatorTest.php
  174. +2 −2 tests/framework/validators/RangeValidatorTest.php
  175. +2 −2 tests/framework/validators/RegularExpressionValidatorTest.php
  176. +1 −1 tests/framework/validators/RequiredValidatorTest.php
  177. +4 −4 tests/framework/validators/StringValidatorTest.php
  178. +2 −2 tests/framework/validators/UniqueValidatorTest.php
  179. +1 −1 tests/framework/validators/UrlValidatorTest.php
  180. +1 −1 tests/framework/validators/ValidatorTest.php
  181. +10 −8 tests/framework/web/AssetBundleTest.php
  182. +2 −2 tests/framework/web/AssetConverterTest.php
  183. +1 −32 tests/framework/web/ControllerTest.php
  184. +2 −2 tests/framework/web/ErrorActionTest.php
  185. +10 −12 tests/framework/web/ErrorHandlerTest.php
  186. +1 −1 tests/framework/web/FormatterTest.php
  187. +1 −1 tests/framework/web/GroupUrlRuleTest.php
  188. +5 −7 tests/framework/web/RequestTest.php
  189. +1 −1 tests/framework/web/ResponseTest.php
  190. +1 −1 tests/framework/web/UploadedFileTest.php
  191. +1 −1 tests/framework/web/UrlManagerParseUrlTest.php
  192. +1 −1 tests/framework/web/UrlNormalizerTest.php
  193. +4 −3 tests/framework/web/UrlRuleTest.php
  194. +2 −2 tests/framework/web/UserTest.php
  195. +91 −64 tests/framework/web/ViewTest.php
  196. +2 −2 tests/framework/web/session/AbstractDbSessionTest.php
  197. +1 −1 tests/framework/web/session/CacheSessionTest.php
  198. +1 −1 tests/framework/web/session/pgsql/DbSessionTest.php
  199. +1 −1 tests/framework/web/session/sqlite/DbSessionTest.php
  200. +7 −4 tests/framework/widgets/ActiveFieldTest.php
  201. +3 −1 tests/framework/widgets/ActiveFormTest.php
  202. +1 −1 tests/framework/widgets/BlockTest.php
  203. +1 −1 tests/framework/widgets/BreadcrumbsTest.php
  204. +1 −1 tests/framework/widgets/ContentDecoratorTest.php
  205. +1 −1 tests/framework/widgets/DetailViewTest.php
  206. +1 −1 tests/framework/widgets/FragmentCacheTest.php
  207. +28 −13 tests/framework/widgets/LinkPagerTest.php
  208. +1 −1 tests/framework/widgets/LinkSorterTest.php
  209. +1 −1 tests/framework/widgets/ListViewTest.php
  210. +1 −1 tests/framework/widgets/MenuTest.php
  211. +1 −1 tests/framework/widgets/PjaxTest.php
4 changes: 2 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ clone_folder: C:\projects\yii2

environment:
matrix:
- php_ver: 7.2.4
- php_ver: 7.3.0

cache:
- '%APPDATA%\Composer'
@@ -30,7 +30,7 @@ install:
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_openssl.dll >> php.ini
- echo extension=php_pdo_sqlite.dll >> php.ini
- IF NOT EXIST C:\tools\composer.phar (cd C:\tools && appveyor DownloadFile https://getcomposer.org/download/1.4.1/composer.phar)
- IF NOT EXIST C:\tools\composer.phar (cd C:\tools && appveyor DownloadFile https://getcomposer.org/download/2.6.3/composer.phar)

before_test:
- cd C:\projects\yii2
53 changes: 10 additions & 43 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -13,58 +13,29 @@ concurrency:

jobs:
phpunit:
name: PHP ${{ matrix.php }} on ${{ matrix.os }}
name: PHP ${{ matrix.php }}

runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- php: 5.4
coverage: none
extensions: apc, curl, dom, imagick, intl, mbstring, mcrypt, memcached
os: ubuntu-latest
- php: 5.5
coverage: none
extensions: apc, curl, dom, imagick, intl, mbstring, mcrypt, memcached
os: ubuntu-latest
- php: 5.6
coverage: none
extensions: apc, curl, dom, imagick, intl, mbstring, mcrypt, memcached
os: ubuntu-latest
- php: 7.0
coverage: none
extensions: apc, curl, dom, imagick, intl, mbstring, mcrypt, memcached
os: ubuntu-latest
- php: 7.1
coverage: none
extensions: apc, curl, dom, imagick, intl, mbstring, mcrypt, memcached
os: ubuntu-latest
- php: 7.2
coverage: none
extensions: apc, curl, dom, imagick, intl, mbstring, mcrypt, memcached
os: ubuntu-latest
- php: 7.3
coverage: none
extensions: apc, curl, dom, imagick, intl, mbstring, mcrypt, memcached
os: ubuntu-latest
coverage: none
- php: 7.4
coverage: xdebug
extensions: apc, curl, dom, imagick, intl, mbstring, mcrypt, memcached
os: ubuntu-latest
coverage: xdebug
- php: 8.0
coverage: none
extensions: apcu, curl, dom, imagick, intl, mbstring, mcrypt, memcached
os: ubuntu-latest
- php: 8.1
coverage: none
- php: 8.1
extensions: apcu, curl, dom, imagick, intl, mbstring, mcrypt, memcached
os: ubuntu-latest
coverage: none
- php: 8.2
extensions: apcu, curl, dom, imagick, intl, mbstring, mcrypt, memcached
coverage: none
os: ubuntu-latest
- php: 8.3
extensions: apcu, curl, dom, imagick, intl, mbstring, mcrypt, memcached
coverage: none
@@ -96,18 +67,14 @@ jobs:
- name: Install dependencies.
run: composer update $DEFAULT_COMPOSER_FLAGS

- name: Run tests with PHPUnit.
if: matrix.php < '7.4' || matrix.php >= '8.1'
run: vendor/bin/phpunit --verbose --exclude-group $PHPUNIT_EXCLUDE_GROUP --colors=always

- name: Run tests with PHPUnit.
if: matrix.php == '8.0'
run: vendor/bin/phpunit --verbose --exclude-group $PHPUNIT_EXCLUDE_GROUP --colors=always

- name: Run tests with PHPUnit and generate coverage.
if: matrix.php == '7.4'
run: vendor/bin/phpunit --verbose --exclude-group $PHPUNIT_EXCLUDE_GROUP --coverage-clover=coverage.xml --colors=always

- name: Run tests with PHPUnit.
if: matrix.php != '7.4'
run: vendor/bin/phpunit --verbose --exclude-group $PHPUNIT_EXCLUDE_GROUP --colors=always

- name: Upload coverage to Codecov.
if: matrix.php == '7.4'
uses: codecov/codecov-action@v3
6 changes: 1 addition & 5 deletions .github/workflows/ci-mssql.yml
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- php: 7.4
@@ -68,13 +69,8 @@ jobs:
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

- name: Run MSSQL tests with PHPUnit and generate coverage.
if: matrix.php == '7.4'
run: vendor/bin/phpunit --group mssql --coverage-clover=coverage.xml --colors=always

- name: Run MSSQL tests with PHPUnit.
if: matrix.php > '7.4'
run: vendor/bin/phpunit --group mssql --colors=always

- name: Upload coverage to Codecov.
if: matrix.php == '7.4'
uses: codecov/codecov-action@v3
8 changes: 2 additions & 6 deletions .github/workflows/ci-mysql.yml
Original file line number Diff line number Diff line change
@@ -15,9 +15,10 @@ jobs:
extensions: curl, intl, pdo, pdo_mysql
XDEBUG_MODE: coverage, develop

runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4]
@@ -50,13 +51,8 @@ jobs:
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

- name: Run MySQL tests with PHPUnit and generate coverage.
if: matrix.php == '7.4'
run: vendor/bin/phpunit --group mysql --coverage-clover=coverage.xml --colors=always

- name: Run MySQL tests with PHPUnit.
if: matrix.php > '7.4'
run: vendor/bin/phpunit --group mysql --colors=always

- name: Upload coverage to Codecov.
if: matrix.php == '7.4'
uses: codecov/codecov-action@v3
8 changes: 2 additions & 6 deletions .github/workflows/ci-pgsql.yml
Original file line number Diff line number Diff line change
@@ -15,9 +15,10 @@ jobs:
extensions: curl, intl, pdo, pdo_pgsql
XDEBUG_MODE: coverage, develop

runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4]
@@ -54,13 +55,8 @@ jobs:
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

- name: Run Pgsql tests with PHPUnit and generate coverage.
if: matrix.php == '7.4'
run: vendor/bin/phpunit --group pgsql --coverage-clover=coverage.xml --colors=always

- name: Run Pgsql tests with PHPUnit.
if: matrix.php > '7.4'
run: vendor/bin/phpunit --group pgsql --colors=always

- name: Upload coverage to Codecov.
if: matrix.php == '7.4'
uses: codecov/codecov-action@v3
6 changes: 1 addition & 5 deletions .github/workflows/ci-sqlite.yml
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4]
@@ -43,13 +44,8 @@ jobs:
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

- name: Run SQLite tests with PHPUnit and generate coverage.
if: matrix.php == '7.4'
run: vendor/bin/phpunit --group sqlite --coverage-clover=coverage.xml --colors=always

- name: Run SQLite tests with PHPUnit.
if: matrix.php > '7.4'
run: vendor/bin/phpunit --group sqlite --colors=always

- name: Upload coverage to Codecov.
if: matrix.php == '7.4'
uses: codecov/codecov-action@v3
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ build:

environment:
php:
version: 7.4.28
version: 8.1
ini:
xdebug.mode: coverage,develop
memory_limit: -1
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -12,13 +12,13 @@ The framework is easy to adjust to meet your needs, because Yii has been designe
[![Latest Stable Version](https://img.shields.io/packagist/v/yiisoft/yii2.svg)](https://packagist.org/packages/yiisoft/yii2)
[![Total Downloads](https://img.shields.io/packagist/dt/yiisoft/yii2.svg)](https://packagist.org/packages/yiisoft/yii2)
[![Build Status](https://github.com/yiisoft/yii2/workflows/build/badge.svg)](https://github.com/yiisoft/yii2/actions)
[![Code Coverage](https://scrutinizer-ci.com/g/yiisoft/yii2/badges/coverage.png?s=31d80f1036099e9d6a3e4d7738f6b000b3c3d10e)](https://scrutinizer-ci.com/g/yiisoft/yii2/)
[![codecov](https://codecov.io/gh/yiisoft/yii2/graph/badge.svg?token=Exm6sRwhJ6)](https://codecov.io/gh/yiisoft/yii2)
[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/yiisoft/yii2/badges/quality-score.png?s=b1074a1ff6d0b214d54fa5ab7abbb90fc092471d)](https://scrutinizer-ci.com/g/yiisoft/yii2/)

Installation
------------

- The minimum required PHP version of Yii is PHP 5.4.
- The minimum required PHP version of Yii is PHP 7.3.
- It works best with PHP 8.
- [Follow the Definitive Guide](https://www.yiiframework.com/doc-2.0/guide-start-installation.html)
in order to get step by step instructions.
21 changes: 3 additions & 18 deletions composer.json
Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@
"yiisoft/yii2": "self.version"
},
"require": {
"php": ">=5.4.0",
"php": ">=7.3.0",
"ext-mbstring": "*",
"ext-ctype": "*",
"lib-pcre": "*",
@@ -82,11 +82,10 @@
"paragonie/random_compat": ">=1"
},
"require-dev": {
"cweagans/composer-patches": "^1.7",
"phpunit/phpunit": "4.8.34",
"cebe/indent": "~1.0.2",
"johnkary/phpunit-speedtrap": "^1.0",
"dealerdirect/phpcodesniffer-composer-installer": "*",
"dms/phpunit-arraysubset-asserts": "^0.5",
"phpunit/phpunit": "^9.6",
"yiisoft/yii2-coding-standards": "^3.0"
},
"repositories": [
@@ -122,20 +121,6 @@
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
},
"composer-exit-on-patch-failure": true,
"patches": {
"phpunit/phpunit-mock-objects": {
"Fix PHP 7 and 8 compatibility": "https://yiisoft.github.io/phpunit-patches/phpunit_mock_objects.patch"
},
"phpunit/php-file-iterator": {
"Fix PHP 8.1 compatibility": "https://yiisoft.github.io/phpunit-patches/phpunit_path_file_iterator.patch"
},
"phpunit/phpunit": {
"Fix PHP 7 compatibility": "https://yiisoft.github.io/phpunit-patches/phpunit_php7.patch",
"Fix PHP 8 compatibility": "https://yiisoft.github.io/phpunit-patches/phpunit_php8.patch",
"Fix PHP 8.1 compatibility": "https://yiisoft.github.io/phpunit-patches/phpunit_php81.patch"
}
}
}
}
Loading