From dfb4dad1c60246978d730923307875980d945a11 Mon Sep 17 00:00:00 2001
From: Wilmer Arambula
Date: Sun, 19 Nov 2023 09:02:28 -0300
Subject: [PATCH 1/3] Support all versions Yii2.
---
.github/workflows/build.yml | 2 +-
.github/workflows/compatibility.yml | 35 ++++++++++++++++++++++++++
.github/workflows/dependency-check.yml | 2 +-
README.md | 35 +++++++++++++++++++++-----
4 files changed, 66 insertions(+), 8 deletions(-)
create mode 100644 .github/workflows/compatibility.yml
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 719d5a9..3291219 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -23,7 +23,7 @@ name: build
jobs:
phpunit:
- uses: yiisoft/actions/.github/workflows/phpunit.yml@master
+ uses: php-forge/actions/.github/workflows/phpunit.yml@main
with:
os: >-
['ubuntu-latest', 'windows-latest']
diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml
new file mode 100644
index 0000000..1e63dac
--- /dev/null
+++ b/.github/workflows/compatibility.yml
@@ -0,0 +1,35 @@
+on:
+ pull_request:
+ paths-ignore:
+ - 'docs/**'
+ - 'README.md'
+ - 'CHANGELOG.md'
+ - '.gitignore'
+ - '.gitattributes'
+ - 'infection.json.dist'
+ - 'psalm.xml'
+
+ push:
+ paths-ignore:
+ - 'docs/**'
+ - 'README.md'
+ - 'CHANGELOG.md'
+ - '.gitignore'
+ - '.gitattributes'
+ - 'infection.json.dist'
+ - 'psalm.xml'
+
+name: compatibility
+
+jobs:
+ phpunit:
+ uses: php-forge/actions/.github/workflows/phpunit.yml@main
+ with:
+ composer-command: |
+ composer require yiisoft/yii2:^2.0.49 --prefer-dist --no-progress --no-suggest --no-interaction --no-scripts --ansi
+
+ extensions: intl
+ os: >-
+ ['ubuntu-latest', 'windows-latest']
+ php: >-
+ ['8.1', '8.2', '8.3']
diff --git a/.github/workflows/dependency-check.yml b/.github/workflows/dependency-check.yml
index b115ab1..c649354 100644
--- a/.github/workflows/dependency-check.yml
+++ b/.github/workflows/dependency-check.yml
@@ -25,7 +25,7 @@ name: Composer require checker
jobs:
composer-require-checker:
- uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master
+ uses: php-forge/actions/.github/workflows/composer-require-checker.yml@main
with:
os: >-
['ubuntu-latest']
diff --git a/README.md b/README.md
index b7b6862..883c5c1 100644
--- a/README.md
+++ b/README.md
@@ -9,12 +9,12 @@
-
-
-
+
+
+
@@ -29,11 +29,34 @@
-## Requirements
+## Installation
+
+The preferred way to install this extension is through [composer](https://getcomposer.org/download/).
+
+Either run
+
+```
+composer require --dev --prefer-dist yii2-extensions/phpstan
+```
+
+or add
-The minimun version of `PHP` required by this package is `PHP 8.1`.
+```
+"yii2-extensions/phpstan": "dev-main"
+```
-For install this package, you need [composer](https://getcomposer.org/).
+to the require-dev section of your `composer.json` file.
+
+## Support versions Yii2
+
+
+
+
+
+
+
+
+
## Testing
From 48b807b5b811f279bda8cccb79f9cd69f0818db9 Mon Sep 17 00:00:00 2001
From: Wilmer Arambula
Date: Sun, 19 Nov 2023 09:03:41 -0300
Subject: [PATCH 2/3] Fix dependencies.
---
composer.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/composer.json b/composer.json
index 68b3d4f..37790c3 100644
--- a/composer.json
+++ b/composer.json
@@ -13,7 +13,7 @@
"php": ">=8.1",
"nikic/php-parser": "^4.1.0",
"phpstan/phpstan": "^1.0",
- "yiisoft/yii2": "^2.2"
+ "yiisoft/yii2": "*"
},
"require-dev": {
"maglnet/composer-require-checker": "^4.6",
From 0a961a34d0ef42d7cd8fc44f18b65ff829abccca Mon Sep 17 00:00:00 2001
From: Wilmer Arambula
Date: Sun, 19 Nov 2023 09:06:17 -0300
Subject: [PATCH 3/3] Update badge.
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 883c5c1..e1ce295 100644
--- a/README.md
+++ b/README.md
@@ -12,8 +12,8 @@
-
-
+
+