From e2be8c5594e0e6f80ade729822913349f4018763 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Dec 2022 08:12:21 +0000 Subject: [PATCH 01/52] chore(deps-dev): update rector/rector requirement from 0.15.1 to 0.15.2 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.1...0.15.2) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2596b47..2e2ad03 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.1" + "rector/rector": "0.15.2" }, "minimum-stability": "dev", "prefer-stable": true, From 05c3c7e9377352253b83f3484b447b7de0bbcb91 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Jan 2023 08:16:58 +0000 Subject: [PATCH 02/52] chore(deps-dev): update rector/rector requirement from 0.15.2 to 0.15.3 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.2...0.15.3) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2e2ad03..b156bc1 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.2" + "rector/rector": "0.15.3" }, "minimum-stability": "dev", "prefer-stable": true, From 11722c6a169eccb41ac9b052a9b221c188d213fd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 11 Jan 2023 08:20:47 +0000 Subject: [PATCH 03/52] chore(deps-dev): update rector/rector requirement from 0.15.3 to 0.15.4 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.3...0.15.4) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b156bc1..57b26a2 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.3" + "rector/rector": "0.15.4" }, "minimum-stability": "dev", "prefer-stable": true, From 72c9a532ce14289a141ec6334c7938ee5c0a5e39 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 13 Jan 2023 08:10:20 +0000 Subject: [PATCH 04/52] chore(deps-dev): update rector/rector requirement from 0.15.4 to 0.15.5 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.4...0.15.5) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 57b26a2..7c30e7e 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.4" + "rector/rector": "0.15.5" }, "minimum-stability": "dev", "prefer-stable": true, From c7e519239cd78be1d7a7b60270707656712bb157 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Jan 2023 08:17:05 +0000 Subject: [PATCH 05/52] chore(deps-dev): update rector/rector requirement from 0.15.5 to 0.15.7 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.5...0.15.7) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7c30e7e..aefff87 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.5" + "rector/rector": "0.15.7" }, "minimum-stability": "dev", "prefer-stable": true, From f26d4cb3dedda6a624a90aff28115d5deaaa2002 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Jan 2023 08:20:56 +0000 Subject: [PATCH 06/52] chore(deps-dev): update rector/rector requirement from 0.15.7 to 0.15.10 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.7...0.15.10) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index aefff87..0300fbb 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.7" + "rector/rector": "0.15.10" }, "minimum-stability": "dev", "prefer-stable": true, From 06a7f635680cf0e0504abcc2a0450144b91983fe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 3 Feb 2023 08:09:32 +0000 Subject: [PATCH 07/52] chore(deps-dev): update rector/rector requirement Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.10...0.15.11) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 0300fbb..101b65b 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.10" + "rector/rector": "0.15.11" }, "minimum-stability": "dev", "prefer-stable": true, From c8470b31bf4c0189556768974d397bb35c0bfb9a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Feb 2023 08:20:10 +0000 Subject: [PATCH 08/52] chore(deps-dev): update rector/rector requirement Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.11...0.15.12) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 101b65b..78fd13b 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.11" + "rector/rector": "0.15.12" }, "minimum-stability": "dev", "prefer-stable": true, From 5dbcf74e39e35e611caf221e5681000e8a751ff9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 08:09:09 +0000 Subject: [PATCH 09/52] chore(deps-dev): update rector/rector requirement Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.12...0.15.13) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 78fd13b..83680db 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.12" + "rector/rector": "0.15.13" }, "minimum-stability": "dev", "prefer-stable": true, From 384ef1dc7336e47cf16a7f3892078fdc33c2f45c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 15 Feb 2023 09:05:29 +0000 Subject: [PATCH 10/52] chore(deps-dev): update rector/rector requirement Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.13...0.15.16) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 83680db..4330fd9 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.13" + "rector/rector": "0.15.16" }, "minimum-stability": "dev", "prefer-stable": true, From 1f8a5a309cbff1da34aaf54a3571e78abe6d8a11 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 2 Mar 2023 09:05:53 +0000 Subject: [PATCH 11/52] chore(deps-dev): update rector/rector requirement Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.16...0.15.19) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4330fd9..0787562 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.16" + "rector/rector": "0.15.19" }, "minimum-stability": "dev", "prefer-stable": true, From 360c156c53d442a7652ea37136eb5bd26ecc666b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 7 Mar 2023 09:06:10 +0000 Subject: [PATCH 12/52] chore(deps-dev): update rector/rector requirement Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.19...0.15.21) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 0787562..c972c5a 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.19" + "rector/rector": "0.15.21" }, "minimum-stability": "dev", "prefer-stable": true, From b38254dbbfd108150bfe7d18e321a11450a232ca Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Mar 2023 09:05:02 +0000 Subject: [PATCH 13/52] chore(deps-dev): update rector/rector requirement Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.21...0.15.23) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c972c5a..8425ff3 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.21" + "rector/rector": "0.15.23" }, "minimum-stability": "dev", "prefer-stable": true, From a4203d51a694a1fa84b7468e811364afb815ba23 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 5 Apr 2023 09:02:18 +0000 Subject: [PATCH 14/52] chore(deps-dev): update rector/rector requirement Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.23...0.15.24) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8425ff3..745c00f 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.23" + "rector/rector": "0.15.24" }, "minimum-stability": "dev", "prefer-stable": true, From 8ade7026a6359aca9932e2dc2556fa80c112b4ba Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 6 Apr 2023 17:11:09 +0900 Subject: [PATCH 15/52] docs: fix installation commands --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b8dba6b..e05b52e 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,13 @@ Development toolkit for CodeIgniter libraries and projects ## Installation -* Install via Composer: `> composer require --dev codeigniter4/devkit` +Install via Composer: + +```console +composer config minimum-stability dev +composer config prefer-stable true +composer require --dev codeigniter4/devkit +``` ## Included Dependencies From b1ee760a798fb60a685f5b34efa60f885d74af37 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 21 Apr 2023 09:02:43 +0000 Subject: [PATCH 16/52] chore(deps-dev): update rector/rector requirement Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.24...0.15.25) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 745c00f..251e165 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.24" + "rector/rector": "0.15.25" }, "minimum-stability": "dev", "prefer-stable": true, From 2ba9e84d9ae1b2c0942bd746beab857a99c385ad Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 May 2023 09:08:41 +0000 Subject: [PATCH 17/52] chore(deps-dev): update rector/rector requirement from 0.15.25 to 0.16.0 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.15.25...0.16.0) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 251e165..dec4682 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.15.25" + "rector/rector": "0.16.0" }, "minimum-stability": "dev", "prefer-stable": true, From 06a06e8d3f42c8d58e211bd8fea04d2d9d8e83c1 Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 2 Jun 2023 17:09:14 +0900 Subject: [PATCH 18/52] chore: replace COMPOSER_TOKEN with GITHUB_TOKEN --- .github/workflows/phpcsfixer.yml | 2 +- .github/workflows/phpstan.yml | 2 +- .github/workflows/psalm.yml | 2 +- .github/workflows/rector.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/phpcsfixer.yml b/.github/workflows/phpcsfixer.yml index 6e9c639..2065315 100644 --- a/.github/workflows/phpcsfixer.yml +++ b/.github/workflows/phpcsfixer.yml @@ -31,7 +31,7 @@ jobs: extensions: json, tokenizer coverage: none env: - COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Get composer cache directory run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 26a6e20..9e0f633 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -40,7 +40,7 @@ jobs: extensions: intl, json, mbstring, xml coverage: none env: - COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Get composer cache directory run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index 274b154..b45a521 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -36,7 +36,7 @@ jobs: extensions: intl, json, mbstring, xml coverage: none env: - COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Get composer cache directory run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index d91db3c..0abf271 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -40,7 +40,7 @@ jobs: extensions: intl, json, mbstring, xml coverage: none env: - COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Get composer cache directory run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV From b4918bff2a68895e7b252426467d24c512214b14 Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 2 Jun 2023 17:17:09 +0900 Subject: [PATCH 19/52] replace COMPOSER_TOKEN with GITHUB_TOKEN --- src/Template/.github/workflows/deptrac.yml | 2 +- src/Template/.github/workflows/infection.yml | 2 +- src/Template/.github/workflows/phpcsfixer.yml | 2 +- src/Template/.github/workflows/phpstan.yml | 2 +- src/Template/.github/workflows/phpunit.yml | 2 +- src/Template/.github/workflows/psalm.yml | 2 +- src/Template/.github/workflows/rector.yml | 2 +- src/Template/.github/workflows/unused.yml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Template/.github/workflows/deptrac.yml b/src/Template/.github/workflows/deptrac.yml index ca471f0..b8d7bcf 100644 --- a/src/Template/.github/workflows/deptrac.yml +++ b/src/Template/.github/workflows/deptrac.yml @@ -36,7 +36,7 @@ jobs: extensions: intl, json, mbstring, xml coverage: none env: - COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Get composer cache directory run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV diff --git a/src/Template/.github/workflows/infection.yml b/src/Template/.github/workflows/infection.yml index 8d2c1dc..ca8cd96 100644 --- a/src/Template/.github/workflows/infection.yml +++ b/src/Template/.github/workflows/infection.yml @@ -36,7 +36,7 @@ jobs: extensions: intl, json, mbstring, gd, xml, sqlite3 coverage: xdebug env: - COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Set up problem matchers for PHPUnit run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" diff --git a/src/Template/.github/workflows/phpcsfixer.yml b/src/Template/.github/workflows/phpcsfixer.yml index 6e9c639..2065315 100644 --- a/src/Template/.github/workflows/phpcsfixer.yml +++ b/src/Template/.github/workflows/phpcsfixer.yml @@ -31,7 +31,7 @@ jobs: extensions: json, tokenizer coverage: none env: - COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Get composer cache directory run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV diff --git a/src/Template/.github/workflows/phpstan.yml b/src/Template/.github/workflows/phpstan.yml index 26a6e20..9e0f633 100644 --- a/src/Template/.github/workflows/phpstan.yml +++ b/src/Template/.github/workflows/phpstan.yml @@ -40,7 +40,7 @@ jobs: extensions: intl, json, mbstring, xml coverage: none env: - COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Get composer cache directory run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV diff --git a/src/Template/.github/workflows/phpunit.yml b/src/Template/.github/workflows/phpunit.yml index c8caa4a..3d49ebf 100644 --- a/src/Template/.github/workflows/phpunit.yml +++ b/src/Template/.github/workflows/phpunit.yml @@ -39,7 +39,7 @@ jobs: extensions: intl, json, mbstring, gd, xdebug, xml, sqlite3 coverage: xdebug env: - COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Get composer cache directory run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV diff --git a/src/Template/.github/workflows/psalm.yml b/src/Template/.github/workflows/psalm.yml index 274b154..b45a521 100644 --- a/src/Template/.github/workflows/psalm.yml +++ b/src/Template/.github/workflows/psalm.yml @@ -36,7 +36,7 @@ jobs: extensions: intl, json, mbstring, xml coverage: none env: - COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Get composer cache directory run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV diff --git a/src/Template/.github/workflows/rector.yml b/src/Template/.github/workflows/rector.yml index d91db3c..0abf271 100644 --- a/src/Template/.github/workflows/rector.yml +++ b/src/Template/.github/workflows/rector.yml @@ -40,7 +40,7 @@ jobs: extensions: intl, json, mbstring, xml coverage: none env: - COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Get composer cache directory run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV diff --git a/src/Template/.github/workflows/unused.yml b/src/Template/.github/workflows/unused.yml index 53a0d03..69ad2d1 100644 --- a/src/Template/.github/workflows/unused.yml +++ b/src/Template/.github/workflows/unused.yml @@ -34,7 +34,7 @@ jobs: extensions: intl, json, mbstring, xml coverage: none env: - COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Get composer cache directory run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV From 8328b4cc78b1f57f959737a118347216088f619f Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 2 Jun 2023 17:17:33 +0900 Subject: [PATCH 20/52] Add PHP 8.2 to matrix --- src/Template/.github/workflows/phpstan.yml | 2 +- src/Template/.github/workflows/phpunit.yml | 2 +- src/Template/.github/workflows/rector.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Template/.github/workflows/phpstan.yml b/src/Template/.github/workflows/phpstan.yml index 9e0f633..1a2a452 100644 --- a/src/Template/.github/workflows/phpstan.yml +++ b/src/Template/.github/workflows/phpstan.yml @@ -26,7 +26,7 @@ jobs: strategy: fail-fast: false matrix: - php-versions: ['7.4', '8.0', '8.1'] + php-versions: ['7.4', '8.0', '8.1', '8.2'] steps: - name: Checkout diff --git a/src/Template/.github/workflows/phpunit.yml b/src/Template/.github/workflows/phpunit.yml index 3d49ebf..f393aab 100644 --- a/src/Template/.github/workflows/phpunit.yml +++ b/src/Template/.github/workflows/phpunit.yml @@ -25,7 +25,7 @@ jobs: if: "!contains(github.event.head_commit.message, '[ci skip]')" strategy: matrix: - php-versions: ['7.4', '8.0', '8.1'] + php-versions: ['7.4', '8.0', '8.1', '8.2'] steps: - name: Checkout diff --git a/src/Template/.github/workflows/rector.yml b/src/Template/.github/workflows/rector.yml index 0abf271..398ce2c 100644 --- a/src/Template/.github/workflows/rector.yml +++ b/src/Template/.github/workflows/rector.yml @@ -26,7 +26,7 @@ jobs: strategy: fail-fast: false matrix: - php-versions: ['7.4', '8.0', '8.1'] + php-versions: ['7.4', '8.0', '8.1', '8.2'] steps: - name: Checkout From e0e52d60696fb6799d13312f480c5b3ebdf07e74 Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 2 Jun 2023 17:18:00 +0900 Subject: [PATCH 21/52] Update PHP version for Coveralls --- src/Template/.github/workflows/phpunit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Template/.github/workflows/phpunit.yml b/src/Template/.github/workflows/phpunit.yml index f393aab..51e9866 100644 --- a/src/Template/.github/workflows/phpunit.yml +++ b/src/Template/.github/workflows/phpunit.yml @@ -65,7 +65,7 @@ jobs: TERM: xterm-256color TACHYCARDIA_MONITOR_GA: enabled - - if: matrix.php-versions == '8.0' + - if: matrix.php-versions == '8.1' name: Run Coveralls continue-on-error: true run: | From 350be8016efd1ca725e51373643693f0a2ca47da Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 2 Jun 2023 17:31:45 +0900 Subject: [PATCH 22/52] Add new config item for Psalm --- psalm.xml | 2 ++ src/Template/psalm.xml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/psalm.xml b/psalm.xml index 7c33561..66ca152 100644 --- a/psalm.xml +++ b/psalm.xml @@ -7,6 +7,8 @@ xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" autoloader="psalm_autoload.php" cacheDirectory="build/psalm/" + findUnusedBaselineEntry="true" + findUnusedCode="false" > diff --git a/src/Template/psalm.xml b/src/Template/psalm.xml index 6f69486..d745a6b 100644 --- a/src/Template/psalm.xml +++ b/src/Template/psalm.xml @@ -7,6 +7,8 @@ xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" autoloader="psalm_autoload.php" cacheDirectory="build/psalm/" + findUnusedBaselineEntry="true" + findUnusedCode="false" > From 437f7f1345700405317fbcb474680bb69befecdc Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 2 Jun 2023 19:31:28 +0900 Subject: [PATCH 23/52] Change rector practice --- README.md | 6 ++++-- src/Template/.github/workflows/rector.yml | 4 +--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e05b52e..1313bb1 100644 --- a/README.md +++ b/README.md @@ -143,8 +143,10 @@ predefined rulesets. Rector can be highly opinionated based on its configuration so be sure to read the documentation and figure out the best fit for you. This workflow performs a "dry run" to check for any changes that Rector would have made and fail if there are matches. -> Note: Rector updates rules all the time so you may want to lock your repo to the latest known working version of Rector to prevent unexpected failures -> E.g. in **Template/.github/workflows/rector.yml** supply the specific minor patch: `composer global require --dev rector/rector:0.12.16` +> Note: Rector updates rules all the time, so you may want to lock your repo to +> the latest known working version of Rector to prevent unexpected failures. +> Using pinned version in `composer.json` and update it with dependabot is the +> best practice. #### Unused diff --git a/src/Template/.github/workflows/rector.yml b/src/Template/.github/workflows/rector.yml index 398ce2c..a0feec3 100644 --- a/src/Template/.github/workflows/rector.yml +++ b/src/Template/.github/workflows/rector.yml @@ -61,6 +61,4 @@ jobs: fi - name: Analyze for refactoring - run: | - composer global require --dev rector/rector:^0.15.1 - rector process --dry-run --no-progress-bar + run: vendor/bin/rector process --dry-run --no-progress-bar From 7155e74607069a8b78d0505f80eae3f6b3131d0e Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 2 Jun 2023 19:38:58 +0900 Subject: [PATCH 24/52] chore: update rector.yml --- .github/workflows/rector.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index 0abf271..9fd4dce 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -61,6 +61,4 @@ jobs: fi - name: Analyze for refactoring - run: | - composer global require --dev rector/rector:^0.15.1 - rector process --dry-run --no-progress-bar + run: vendor/bin/rector process --dry-run --no-progress-bar From 00699bf3eae651422265fde315b9165f67d741ba Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 14 Jun 2023 09:06:56 +0000 Subject: [PATCH 25/52] chore(deps-dev): update rector/rector requirement from 0.16.0 to 0.17.1 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.16.0...0.17.1) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index dec4682..1dd90a9 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.16.0" + "rector/rector": "0.17.1" }, "minimum-stability": "dev", "prefer-stable": true, From 86e3a62f32845220771c666834ec72490a7f4eab Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 14 Jun 2023 17:56:51 +0700 Subject: [PATCH 26/52] update rector config --- rector.php | 10 ---------- src/Template/rector.php | 2 -- 2 files changed, 12 deletions(-) diff --git a/rector.php b/rector.php index 3e8ab23..c175060 100644 --- a/rector.php +++ b/rector.php @@ -3,7 +3,6 @@ use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector; use Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector; use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector; -use Rector\CodeQuality\Rector\For_\ForToForeachRector; use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector; use Rector\CodeQuality\Rector\FuncCall\AddPregQuoteDelimiterRector; use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector; @@ -32,7 +31,6 @@ use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector; use Rector\PHPUnit\Set\PHPUnitSetList; use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; -use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector; use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\SetList; use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector; @@ -87,11 +85,6 @@ __DIR__ . '/tests', ], - // Ignore files that should not be namespaced to their folder - NormalizeNamespaceByPSR4ComposerAutoloadRector::class => [ - __DIR__ . '/src/Helpers', - ], - // May load view files directly when detecting classes StringClassNameToClassConstantRector::class, @@ -105,7 +98,6 @@ $rectorConfig->rule(SimplifyUselessVariableRector::class); $rectorConfig->rule(RemoveAlwaysElseRector::class); $rectorConfig->rule(CountArrayToEmptyArrayComparisonRector::class); - $rectorConfig->rule(ForToForeachRector::class); $rectorConfig->rule(ChangeNestedForeachIfsToEarlyContinueRector::class); $rectorConfig->rule(ChangeIfElseValueAssignToEarlyReturnRector::class); $rectorConfig->rule(SimplifyStrposLowerRector::class); @@ -118,12 +110,10 @@ $rectorConfig->rule(UnusedForeachValueToArrayKeysRector::class); $rectorConfig->rule(ChangeArrayPushToArrayAssignRector::class); $rectorConfig->rule(UnnecessaryTernaryExpressionRector::class); - $rectorConfig->rule(AddPregQuoteDelimiterRector::class); $rectorConfig->rule(SimplifyRegexPatternRector::class); $rectorConfig->rule(FuncGetArgsToVariadicParamRector::class); $rectorConfig->rule(MakeInheritedMethodVisibilitySameAsParentRector::class); $rectorConfig->rule(SimplifyEmptyArrayCheckRector::class); - $rectorConfig->rule(NormalizeNamespaceByPSR4ComposerAutoloadRector::class); $rectorConfig ->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [ /** diff --git a/src/Template/rector.php b/src/Template/rector.php index 6b236dc..b7e3ce6 100644 --- a/src/Template/rector.php +++ b/src/Template/rector.php @@ -3,7 +3,6 @@ use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector; use Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector; use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector; -use Rector\CodeQuality\Rector\For_\ForToForeachRector; use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector; use Rector\CodeQuality\Rector\FuncCall\AddPregQuoteDelimiterRector; use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector; @@ -106,7 +105,6 @@ $rectorConfig->rule(SimplifyUselessVariableRector::class); $rectorConfig->rule(RemoveAlwaysElseRector::class); $rectorConfig->rule(CountArrayToEmptyArrayComparisonRector::class); - $rectorConfig->rule(ForToForeachRector::class); $rectorConfig->rule(ChangeNestedForeachIfsToEarlyContinueRector::class); $rectorConfig->rule(ChangeIfElseValueAssignToEarlyReturnRector::class); $rectorConfig->rule(SimplifyStrposLowerRector::class); From 7c2109a25b849e098dd5cff21a1b72c36022a93d Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 14 Jun 2023 17:57:49 +0700 Subject: [PATCH 27/52] update rector config --- rector.php | 1 - src/Template/rector.php | 9 --------- 2 files changed, 10 deletions(-) diff --git a/rector.php b/rector.php index c175060..ba09589 100644 --- a/rector.php +++ b/rector.php @@ -4,7 +4,6 @@ use Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector; use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector; use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector; -use Rector\CodeQuality\Rector\FuncCall\AddPregQuoteDelimiterRector; use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector; use Rector\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector; use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector; diff --git a/src/Template/rector.php b/src/Template/rector.php index b7e3ce6..8de09e5 100644 --- a/src/Template/rector.php +++ b/src/Template/rector.php @@ -4,7 +4,6 @@ use Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector; use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector; use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector; -use Rector\CodeQuality\Rector\FuncCall\AddPregQuoteDelimiterRector; use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector; use Rector\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector; use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector; @@ -31,7 +30,6 @@ use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector; use Rector\PHPUnit\Set\PHPUnitSetList; use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; -use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector; use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\SetList; use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector; @@ -87,11 +85,6 @@ __DIR__ . '/tests', ], - // Ignore files that should not be namespaced to their folder - NormalizeNamespaceByPSR4ComposerAutoloadRector::class => [ - __DIR__ . '/app/Helpers', - ], - // May load view files directly when detecting classes StringClassNameToClassConstantRector::class, @@ -117,12 +110,10 @@ $rectorConfig->rule(UnusedForeachValueToArrayKeysRector::class); $rectorConfig->rule(ChangeArrayPushToArrayAssignRector::class); $rectorConfig->rule(UnnecessaryTernaryExpressionRector::class); - $rectorConfig->rule(AddPregQuoteDelimiterRector::class); $rectorConfig->rule(SimplifyRegexPatternRector::class); $rectorConfig->rule(FuncGetArgsToVariadicParamRector::class); $rectorConfig->rule(MakeInheritedMethodVisibilitySameAsParentRector::class); $rectorConfig->rule(SimplifyEmptyArrayCheckRector::class); - $rectorConfig->rule(NormalizeNamespaceByPSR4ComposerAutoloadRector::class); $rectorConfig ->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [ /** From 2a258a51a039f9783b96e85212b00d3f65fe6f0c Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 14 Jun 2023 17:59:01 +0700 Subject: [PATCH 28/52] update rector config --- rector.php | 6 ------ src/Template/rector.php | 6 ------ 2 files changed, 12 deletions(-) diff --git a/rector.php b/rector.php index ba09589..8ab6f5c 100644 --- a/rector.php +++ b/rector.php @@ -19,7 +19,6 @@ use Rector\Config\RectorConfig; use Rector\Core\ValueObject\PhpVersion; use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; -use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector; use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector; use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector; use Rector\EarlyReturn\Rector\If_\RemoveAlwaysElseRector; @@ -79,11 +78,6 @@ // Note: requires php 8 RemoveUnusedPromotedPropertyRector::class, - // Ignore tests that might make calls without a result - RemoveEmptyMethodCallRector::class => [ - __DIR__ . '/tests', - ], - // May load view files directly when detecting classes StringClassNameToClassConstantRector::class, diff --git a/src/Template/rector.php b/src/Template/rector.php index 8de09e5..e28f322 100644 --- a/src/Template/rector.php +++ b/src/Template/rector.php @@ -19,7 +19,6 @@ use Rector\Config\RectorConfig; use Rector\Core\ValueObject\PhpVersion; use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; -use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector; use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector; use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector; use Rector\EarlyReturn\Rector\If_\RemoveAlwaysElseRector; @@ -80,11 +79,6 @@ // Note: requires php 8 RemoveUnusedPromotedPropertyRector::class, - // Ignore tests that might make calls without a result - RemoveEmptyMethodCallRector::class => [ - __DIR__ . '/tests', - ], - // May load view files directly when detecting classes StringClassNameToClassConstantRector::class, From da9ef378bd0808b657fff4e716fcbbbd9e4f4aac Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 30 Jun 2023 08:48:51 +0000 Subject: [PATCH 29/52] chore(deps-dev): update rector/rector requirement from 0.17.1 to 0.17.2 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.17.1...0.17.2) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1dd90a9..987167a 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.17.1" + "rector/rector": "0.17.2" }, "minimum-stability": "dev", "prefer-stable": true, From e86cfd43ddc4222ee904c09193f1410dc6da8f1a Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 3 Jul 2023 10:24:58 +0900 Subject: [PATCH 30/52] chore: update infection.yml - $GITHUB_BASE_REF does not work with pushes. - Ref: https://github.com/infection/infection/blob/30c91e6300932b048d7434a90d85583fde37eb6b/.github/workflows/mt-annotations.yaml#L52-L55 --- src/Template/.github/workflows/infection.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/Template/.github/workflows/infection.yml b/src/Template/.github/workflows/infection.yml index ca8cd96..0977344 100644 --- a/src/Template/.github/workflows/infection.yml +++ b/src/Template/.github/workflows/infection.yml @@ -9,14 +9,6 @@ on: - 'composer.*' - 'phpunit*' - '.github/workflows/infection.yml' - push: - branches: - - develop - paths: - - '**.php' - - 'composer.*' - - 'phpunit*' - - '.github/workflows/infection.yml' jobs: main: @@ -62,10 +54,7 @@ jobs: composer update --no-progress --no-interaction --prefer-dist --optimize-autoloader fi - - name: Test with PHPUnit - run: vendor/bin/phpunit --teamcity - - - name: Mutate with Infection + - name: Run Infection for added files only run: | git fetch --depth=1 origin $GITHUB_BASE_REF - infection --threads=2 --skip-initial-tests --coverage=build/phpunit --git-diff-base=origin/$GITHUB_BASE_REF --git-diff-filter=AM --logger-github --ignore-msi-with-no-mutations + infection --threads=max --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --ignore-msi-with-no-mutations --only-covered --logger-github From 9ca1308c2fb22c87eb21814a796e5491e49bb486 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Jul 2023 09:06:32 +0000 Subject: [PATCH 31/52] chore(deps-dev): update rector/rector requirement from 0.17.2 to 0.17.3 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.17.2...0.17.3) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 987167a..9db869c 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.17.2" + "rector/rector": "0.17.3" }, "minimum-stability": "dev", "prefer-stable": true, From 507053446a0762554cfb45e6ae5fa5f4a8a25e9e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 13 Jul 2023 09:00:13 +0000 Subject: [PATCH 32/52] chore(deps-dev): update rector/rector requirement from 0.17.3 to 0.17.5 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.17.3...0.17.5) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9db869c..640507f 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.17.3" + "rector/rector": "0.17.5" }, "minimum-stability": "dev", "prefer-stable": true, From 9e5d398b7ed4d750f8f11b503a92c63f35761afb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jul 2023 09:01:39 +0000 Subject: [PATCH 33/52] chore(deps-dev): update rector/rector requirement from 0.17.5 to 0.17.6 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.17.5...0.17.6) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 640507f..f17fabe 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.17.5" + "rector/rector": "0.17.6" }, "minimum-stability": "dev", "prefer-stable": true, From bcc243d9c6e096894b2feee6b1b4999fff138718 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 17 Jul 2023 16:05:13 +0700 Subject: [PATCH 34/52] use PHPUNIT_CODE_QUALITY --- rector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rector.php b/rector.php index 8ab6f5c..556e53c 100644 --- a/rector.php +++ b/rector.php @@ -37,7 +37,7 @@ $rectorConfig->sets([ SetList::DEAD_CODE, LevelSetList::UP_TO_PHP_74, - PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD, + PHPUnitSetList::PHPUNIT_CODE_QUALITY, PHPUnitSetList::PHPUNIT_100, ]); From 4d6076e7bb9203554a01117e40d77321e32a1408 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 17 Jul 2023 16:05:44 +0700 Subject: [PATCH 35/52] use PHPUNIT_CODE_QUALITY --- src/Template/rector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Template/rector.php b/src/Template/rector.php index e28f322..24321fb 100644 --- a/src/Template/rector.php +++ b/src/Template/rector.php @@ -37,7 +37,7 @@ $rectorConfig->sets([ SetList::DEAD_CODE, LevelSetList::UP_TO_PHP_74, - PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD, + PHPUnitSetList::PHPUNIT_CODE_QUALITY, PHPUnitSetList::PHPUNIT_100, ]); From 2160eb57313692e179d6c4a088235f7353fec4e5 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Fri, 21 Jul 2023 11:37:44 +0800 Subject: [PATCH 36/52] Bump phpstan level to 6 --- src/Template/phpstan.neon.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Template/phpstan.neon.dist b/src/Template/phpstan.neon.dist index 7a57370..588f93e 100644 --- a/src/Template/phpstan.neon.dist +++ b/src/Template/phpstan.neon.dist @@ -1,6 +1,6 @@ parameters: tmpDir: build/phpstan - level: 5 + level: 6 paths: - app/ - tests/ From e696fd1c1edd20a35fdbd4a3a61189a8b710bfc3 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean <97607754+ddevsr@users.noreply.github.com> Date: Mon, 24 Jul 2023 08:28:11 +0700 Subject: [PATCH 37/52] `disableProcessTimeout` in `analyze` Composer --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index f17fabe..8a9ee53 100644 --- a/composer.json +++ b/composer.json @@ -50,6 +50,7 @@ }, "scripts": { "analyze": [ + "Composer\\Config::disableProcessTimeout", "phpstan analyze", "psalm", "rector process --dry-run" From a3d468d4dadfc347c8c0a939dd8391510d1b4dfd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Jul 2023 08:39:36 +0000 Subject: [PATCH 38/52] chore(deps-dev): update rector/rector requirement from 0.17.6 to 0.17.7 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.17.6...0.17.7) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8a9ee53..a6635c1 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.17.6" + "rector/rector": "0.17.7" }, "minimum-stability": "dev", "prefer-stable": true, From 68d682a288e07101b895988caf10889658a634ed Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 4 Aug 2023 08:18:19 +0000 Subject: [PATCH 39/52] chore(deps-dev): update rector/rector requirement from 0.17.7 to 0.17.10 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.17.7...0.17.10) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a6635c1..5fa6706 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.17.7" + "rector/rector": "0.17.10" }, "minimum-stability": "dev", "prefer-stable": true, From bd1bae5baa3ce714a37d1a687db20091d66ae212 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Aug 2023 08:42:19 +0000 Subject: [PATCH 40/52] chore(deps-dev): update rector/rector requirement Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.17.10...0.17.12) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 5fa6706..b5648ec 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.17.10" + "rector/rector": "0.17.12" }, "minimum-stability": "dev", "prefer-stable": true, From f028914003eefe8a43a0a399a067cd4f6f1afd49 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 11 Aug 2023 16:21:35 +0700 Subject: [PATCH 41/52] remove AddDefaultValueForUndefinedVariableRector as no longer exists --- rector.php | 4 ---- src/Template/rector.php | 4 ---- 2 files changed, 8 deletions(-) diff --git a/rector.php b/rector.php index 556e53c..9cdb728 100644 --- a/rector.php +++ b/rector.php @@ -24,7 +24,6 @@ use Rector\EarlyReturn\Rector\If_\RemoveAlwaysElseRector; use Rector\EarlyReturn\Rector\Return_\PreparedValueToEarlyReturnRector; use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector; -use Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector; use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector; use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector; use Rector\PHPUnit\Set\PHPUnitSetList; @@ -80,9 +79,6 @@ // May load view files directly when detecting classes StringClassNameToClassConstantRector::class, - - // May be uninitialized on purpose - AddDefaultValueForUndefinedVariableRector::class, ]); // auto import fully qualified class names diff --git a/src/Template/rector.php b/src/Template/rector.php index 24321fb..bdfa84e 100644 --- a/src/Template/rector.php +++ b/src/Template/rector.php @@ -24,7 +24,6 @@ use Rector\EarlyReturn\Rector\If_\RemoveAlwaysElseRector; use Rector\EarlyReturn\Rector\Return_\PreparedValueToEarlyReturnRector; use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector; -use Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector; use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector; use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector; use Rector\PHPUnit\Set\PHPUnitSetList; @@ -81,9 +80,6 @@ // May load view files directly when detecting classes StringClassNameToClassConstantRector::class, - - // May be uninitialized on purpose - AddDefaultValueForUndefinedVariableRector::class, ]); // auto import fully qualified class names From d84e750b187ac963f51e8509b15e800ceb749eb2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 15 Aug 2023 08:43:07 +0000 Subject: [PATCH 42/52] chore(deps-dev): update rector/rector requirement Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.17.12...0.17.13) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b5648ec..179c54c 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.17.12" + "rector/rector": "0.17.13" }, "minimum-stability": "dev", "prefer-stable": true, From 29b70672b25ca1d6449ed8ccfe388acf87ea8d99 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 18 Aug 2023 08:56:48 +0000 Subject: [PATCH 43/52] chore(deps-dev): update rector/rector requirement from 0.17.13 to 0.18.0 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.17.13...0.18.0) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 179c54c..f950782 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.17.13" + "rector/rector": "0.18.0" }, "minimum-stability": "dev", "prefer-stable": true, From 3305b9ed11e1f022dbd28dbffe2cdf02bd868a0b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 29 Aug 2023 08:25:13 +0000 Subject: [PATCH 44/52] chore(deps-dev): update rector/rector requirement from 0.18.0 to 0.18.1 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.18.0...0.18.1) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index f950782..7847071 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.18.0" + "rector/rector": "0.18.1" }, "minimum-stability": "dev", "prefer-stable": true, From 1684ef9b1df7fe51a308fc6df1b00647e4dab1ee Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Sep 2023 08:21:27 +0000 Subject: [PATCH 45/52] chore(deps): bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/phpcsfixer.yml | 2 +- .github/workflows/phpstan.yml | 2 +- .github/workflows/psalm.yml | 2 +- .github/workflows/rector.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/phpcsfixer.yml b/.github/workflows/phpcsfixer.yml index 2065315..59c867c 100644 --- a/.github/workflows/phpcsfixer.yml +++ b/.github/workflows/phpcsfixer.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 9e0f633..638291d 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index b45a521..b28b1fc 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -26,7 +26,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index 9fd4dce..d30b099 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up PHP uses: shivammathur/setup-php@v2 From 91c02c1215655b9e5638ed1f48b73eb1c7bde604 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 6 Sep 2023 10:46:35 +0900 Subject: [PATCH 46/52] chore: update actions/checkout version to v4 --- src/Template/.github/workflows/deptrac.yml | 2 +- src/Template/.github/workflows/infection.yml | 2 +- src/Template/.github/workflows/phpcpd.yml | 2 +- src/Template/.github/workflows/phpcsfixer.yml | 2 +- src/Template/.github/workflows/phpstan.yml | 2 +- src/Template/.github/workflows/phpunit.yml | 2 +- src/Template/.github/workflows/psalm.yml | 2 +- src/Template/.github/workflows/rector.yml | 2 +- src/Template/.github/workflows/unused.yml | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Template/.github/workflows/deptrac.yml b/src/Template/.github/workflows/deptrac.yml index b8d7bcf..078f78b 100644 --- a/src/Template/.github/workflows/deptrac.yml +++ b/src/Template/.github/workflows/deptrac.yml @@ -26,7 +26,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up PHP uses: shivammathur/setup-php@v2 diff --git a/src/Template/.github/workflows/infection.yml b/src/Template/.github/workflows/infection.yml index 0977344..82501aa 100644 --- a/src/Template/.github/workflows/infection.yml +++ b/src/Template/.github/workflows/infection.yml @@ -18,7 +18,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up PHP uses: shivammathur/setup-php@v2 diff --git a/src/Template/.github/workflows/phpcpd.yml b/src/Template/.github/workflows/phpcpd.yml index ac097f1..57b56fe 100644 --- a/src/Template/.github/workflows/phpcpd.yml +++ b/src/Template/.github/workflows/phpcpd.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/src/Template/.github/workflows/phpcsfixer.yml b/src/Template/.github/workflows/phpcsfixer.yml index 2065315..59c867c 100644 --- a/src/Template/.github/workflows/phpcsfixer.yml +++ b/src/Template/.github/workflows/phpcsfixer.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up PHP uses: shivammathur/setup-php@v2 diff --git a/src/Template/.github/workflows/phpstan.yml b/src/Template/.github/workflows/phpstan.yml index 1a2a452..9be7e20 100644 --- a/src/Template/.github/workflows/phpstan.yml +++ b/src/Template/.github/workflows/phpstan.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/src/Template/.github/workflows/phpunit.yml b/src/Template/.github/workflows/phpunit.yml index 51e9866..848dba4 100644 --- a/src/Template/.github/workflows/phpunit.yml +++ b/src/Template/.github/workflows/phpunit.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up PHP uses: shivammathur/setup-php@v2 diff --git a/src/Template/.github/workflows/psalm.yml b/src/Template/.github/workflows/psalm.yml index b45a521..b28b1fc 100644 --- a/src/Template/.github/workflows/psalm.yml +++ b/src/Template/.github/workflows/psalm.yml @@ -26,7 +26,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/src/Template/.github/workflows/rector.yml b/src/Template/.github/workflows/rector.yml index a0feec3..4b3ec16 100644 --- a/src/Template/.github/workflows/rector.yml +++ b/src/Template/.github/workflows/rector.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up PHP uses: shivammathur/setup-php@v2 diff --git a/src/Template/.github/workflows/unused.yml b/src/Template/.github/workflows/unused.yml index 69ad2d1..a7f9844 100644 --- a/src/Template/.github/workflows/unused.yml +++ b/src/Template/.github/workflows/unused.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 From c607bba8ae80c81172b08d6125cf26d568034a15 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 6 Sep 2023 16:54:28 +0900 Subject: [PATCH 47/52] Update rector.php --- rector.php | 6 ++++++ src/Template/rector.php | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/rector.php b/rector.php index 9cdb728..4eadd7f 100644 --- a/rector.php +++ b/rector.php @@ -1,5 +1,7 @@ Date: Wed, 6 Sep 2023 08:53:31 +0000 Subject: [PATCH 48/52] chore(deps-dev): update rector/rector requirement from 0.18.1 to 0.18.2 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.18.1...0.18.2) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7847071..eba87ad 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.18.1" + "rector/rector": "0.18.2" }, "minimum-stability": "dev", "prefer-stable": true, From 3dcef03846592376dd895469d5c93060fd0c24dc Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 7 Sep 2023 10:29:33 +0900 Subject: [PATCH 49/52] Update nexusphp/tachycardia to ^1.3 Expeditable trait was introduced in v1.3.0. codeigniter4/settings use it. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index eba87ad..c826294 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "fakerphp/faker": "^1.9", "mikey179/vfsstream": "^1.6", "nexusphp/cs-config": "^3.6", - "nexusphp/tachycardia": "^1.0", + "nexusphp/tachycardia": "^1.3", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.0", "phpstan/phpstan-deprecation-rules": "^1.0", From fc214a453a70599d7234ab244280354d594c0609 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Sep 2023 08:12:05 +0000 Subject: [PATCH 50/52] chore(deps-dev): update rector/rector requirement from 0.18.2 to 0.18.3 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.18.2...0.18.3) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c826294..05c4e58 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "require-dev": { "codeigniter4/framework": "^4.1", "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.18.2" + "rector/rector": "0.18.3" }, "minimum-stability": "dev", "prefer-stable": true, From 8376398f3dcd3674a7d3aa16982976d2cb14f7f4 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 11 Sep 2023 09:29:54 +0900 Subject: [PATCH 51/52] chore: move rector from require-dev to require --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 05c4e58..5b10c76 100644 --- a/composer.json +++ b/composer.json @@ -34,12 +34,12 @@ "phpstan/phpstan-phpunit": "^1.0", "phpunit/phpunit": "^9.3", "roave/security-advisories": "dev-latest", - "vimeo/psalm": "^5.0" + "vimeo/psalm": "^5.0", + "rector/rector": "^0.18.3" }, "require-dev": { "codeigniter4/framework": "^4.1", - "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.18.3" + "icanhazstring/composer-unused": "^0.8.2" }, "minimum-stability": "dev", "prefer-stable": true, From 4b4e0d6f6b84acc13b641ea17c014df562a3c84f Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 14 Sep 2023 09:19:40 +0900 Subject: [PATCH 52/52] docs: fix Note format in GitHub markdown --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1313bb1..4d85d3f 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,8 @@ predefined rulesets. Rector can be highly opinionated based on its configuration so be sure to read the documentation and figure out the best fit for you. This workflow performs a "dry run" to check for any changes that Rector would have made and fail if there are matches. -> Note: Rector updates rules all the time, so you may want to lock your repo to +> **Note** +> Rector updates rules all the time, so you may want to lock your repo to > the latest known working version of Rector to prevent unexpected failures. > Using pinned version in `composer.json` and update it with dependabot is the > best practice.