From 8b9bcf74ae0c13365a4f95d17d6bcb1cfdd576ec Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 29 Nov 2023 11:15:44 +0900 Subject: [PATCH 01/14] feat: add oracle service to docker-compose --- src/docker/README.md | 19 +++++++++++++++++++ src/docker/docker-compose.yaml | 9 +++++++++ 2 files changed, 28 insertions(+) diff --git a/src/docker/README.md b/src/docker/README.md index 0c97e61..0a86293 100644 --- a/src/docker/README.md +++ b/src/docker/README.md @@ -67,6 +67,25 @@ database.default.DBDriver = MySQLi database.default.port = 3306 ``` +### Oracle + +#### .env + +``` +NLS_LANG = 'AMERICAN_AMERICA.UTF8' +NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS' +NLS_TIMESTAMP_FORMAT = 'YYYY-MM-DD HH24:MI:SS' +NLS_TIMESTAMP_TZ_FORMAT = 'YYYY-MM-DD HH24:MI:SS' +database.default.DSN = localhost:1521/XEPDB1 +database.default.hostname = +database.default.database = +database.default.username = ORACLE +database.default.password = ORACLE +database.default.DBDriver = OCI8 +database.default.charset = AL32UTF8 +database.default.port = 1521 +``` + ### MailHog #### .env diff --git a/src/docker/docker-compose.yaml b/src/docker/docker-compose.yaml index 8db41f5..22b82c0 100644 --- a/src/docker/docker-compose.yaml +++ b/src/docker/docker-compose.yaml @@ -29,6 +29,15 @@ services: MYSQL_USER: mysql MYSQL_PASSWORD: mysql + oracle: + image: gvenzl/oracle-xe:21 + ports: + - "1521:1521" + environment: + ORACLE_RANDOM_PASSWORD: true + APP_USER: ORACLE + APP_USER_PASSWORD: ORACLE + mailhog: image: mailhog/mailhog ports: From 9dd841d148f97a8f4954c5ed81edab582f152497 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 18 Dec 2023 19:56:42 +0900 Subject: [PATCH 02/14] docs: break long comment --- src/Template/rector.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Template/rector.php b/src/Template/rector.php index 2680794..18540b8 100644 --- a/src/Template/rector.php +++ b/src/Template/rector.php @@ -113,7 +113,9 @@ $rectorConfig ->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [ /** - * The INLINE_PUBLIC value is default to false to avoid BC break, if you use for libraries and want to preserve BC break, you don't need to configure it, as it included in LevelSetList::UP_TO_PHP_74 + * The INLINE_PUBLIC value is default to false to avoid BC break, + * if you use for libraries and want to preserve BC break, you don't + * need to configure it, as it included in LevelSetList::UP_TO_PHP_74 * Set to true for projects that allow BC break */ TypedPropertyFromAssignsRector::INLINE_PUBLIC => true, From b5e16e9a5b1caa15445674aea4b1c1cc7172fdc1 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 18 Dec 2023 19:57:18 +0900 Subject: [PATCH 03/14] Add empty related rules --- src/Template/rector.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Template/rector.php b/src/Template/rector.php index 18540b8..e28ac29 100644 --- a/src/Template/rector.php +++ b/src/Template/rector.php @@ -4,6 +4,7 @@ use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector; use Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector; +use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector; use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector; use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector; use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector; @@ -14,6 +15,7 @@ use Rector\CodeQuality\Rector\If_\ShortenElseIfRector; use Rector\CodeQuality\Rector\If_\SimplifyIfElseToTernaryRector; use Rector\CodeQuality\Rector\If_\SimplifyIfReturnBoolRector; +use Rector\CodeQuality\Rector\Ternary\TernaryEmptyArrayArrayDimFetchToCoalesceRector; use Rector\CodeQuality\Rector\Ternary\UnnecessaryTernaryExpressionRector; use Rector\CodingStyle\Rector\ClassMethod\FuncGetArgsToVariadicParamRector; use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector; @@ -34,6 +36,8 @@ use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\SetList; +use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector; +use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector; use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector; return static function (RectorConfig $rectorConfig): void { @@ -110,6 +114,10 @@ $rectorConfig->rule(FuncGetArgsToVariadicParamRector::class); $rectorConfig->rule(MakeInheritedMethodVisibilitySameAsParentRector::class); $rectorConfig->rule(SimplifyEmptyArrayCheckRector::class); + $rectorConfig->rule(SimplifyEmptyCheckOnEmptyArrayRector::class); + $rectorConfig->rule(TernaryEmptyArrayArrayDimFetchToCoalesceRector::class); + $rectorConfig->rule(EmptyOnNullableObjectToInstanceOfRector::class); + $rectorConfig->rule(DisallowedEmptyRuleFixerRector::class); $rectorConfig ->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [ /** From c63cb28e61918906c2b0d8d287e7776b7b1232eb Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 18 Dec 2023 19:58:24 +0900 Subject: [PATCH 04/14] Update rector.php --- rector.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/rector.php b/rector.php index 4eadd7f..d4cdfc2 100644 --- a/rector.php +++ b/rector.php @@ -4,6 +4,7 @@ use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector; use Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector; +use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector; use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector; use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector; use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector; @@ -14,6 +15,7 @@ use Rector\CodeQuality\Rector\If_\ShortenElseIfRector; use Rector\CodeQuality\Rector\If_\SimplifyIfElseToTernaryRector; use Rector\CodeQuality\Rector\If_\SimplifyIfReturnBoolRector; +use Rector\CodeQuality\Rector\Ternary\TernaryEmptyArrayArrayDimFetchToCoalesceRector; use Rector\CodeQuality\Rector\Ternary\UnnecessaryTernaryExpressionRector; use Rector\CodingStyle\Rector\ClassMethod\FuncGetArgsToVariadicParamRector; use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector; @@ -34,6 +36,8 @@ use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\SetList; +use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector; +use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector; use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector; return static function (RectorConfig $rectorConfig): void { @@ -109,10 +113,16 @@ $rectorConfig->rule(FuncGetArgsToVariadicParamRector::class); $rectorConfig->rule(MakeInheritedMethodVisibilitySameAsParentRector::class); $rectorConfig->rule(SimplifyEmptyArrayCheckRector::class); + $rectorConfig->rule(SimplifyEmptyCheckOnEmptyArrayRector::class); + $rectorConfig->rule(TernaryEmptyArrayArrayDimFetchToCoalesceRector::class); + $rectorConfig->rule(EmptyOnNullableObjectToInstanceOfRector::class); + $rectorConfig->rule(DisallowedEmptyRuleFixerRector::class); $rectorConfig ->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [ /** - * The INLINE_PUBLIC value is default to false to avoid BC break, if you use for libraries and want to preserve BC break, you don't need to configure it, as it included in LevelSetList::UP_TO_PHP_74 + * The INLINE_PUBLIC value is default to false to avoid BC break, + * if you use for libraries and want to preserve BC break, you don't + * need to configure it, as it included in LevelSetList::UP_TO_PHP_74 * Set to true for projects that allow BC break */ TypedPropertyFromAssignsRector::INLINE_PUBLIC => true, From 653cabe1b34aad8c7ef53359e79523b9758e9d2b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Jan 2024 09:02:22 +0000 Subject: [PATCH 05/14] chore(deps): update rector/rector requirement || ^0.19.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.18.3...0.19.0) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 5b10c76..bf3cebf 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "phpunit/phpunit": "^9.3", "roave/security-advisories": "dev-latest", "vimeo/psalm": "^5.0", - "rector/rector": "^0.18.3" + "rector/rector": "^0.18.3 || ^0.19.0" }, "require-dev": { "codeigniter4/framework": "^4.1", From ac038015081b97109c5502a5d03ab86bedcc09b5 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 9 Jan 2024 16:39:52 +0700 Subject: [PATCH 06/14] Update Rector\Core sub namespace to Rector --- 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 e28ac29..84a10cb 100644 --- a/src/Template/rector.php +++ b/src/Template/rector.php @@ -21,7 +21,7 @@ use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector; use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; use Rector\Config\RectorConfig; -use Rector\Core\ValueObject\PhpVersion; +use Rector\ValueObject\PhpVersion; use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector; use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector; From 7a180707fde3c1050d30499d4a3577e7fe38c4ce Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 9 Jan 2024 16:40:11 +0700 Subject: [PATCH 07/14] Update Rector\Core sub namespace to Rector --- rector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rector.php b/rector.php index d4cdfc2..d5ac09b 100644 --- a/rector.php +++ b/rector.php @@ -21,7 +21,7 @@ use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector; use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; use Rector\Config\RectorConfig; -use Rector\Core\ValueObject\PhpVersion; +use Rector\ValueObject\PhpVersion; use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector; use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector; From 8c2dd2cd4ac0a298d88ccfc2964bacb804019790 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 9 Jan 2024 16:40:48 +0700 Subject: [PATCH 08/14] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index bf3cebf..dc87da6 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "phpunit/phpunit": "^9.3", "roave/security-advisories": "dev-latest", "vimeo/psalm": "^5.0", - "rector/rector": "^0.18.3 || ^0.19.0" + "rector/rector": "^0.19.0" }, "require-dev": { "codeigniter4/framework": "^4.1", From 3d8fe4c8d677ff707497632a1892372babd519ae Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 9 Jan 2024 16:42:22 +0700 Subject: [PATCH 09/14] cs fix --- rector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rector.php b/rector.php index d5ac09b..5c456ad 100644 --- a/rector.php +++ b/rector.php @@ -21,7 +21,6 @@ use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector; use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; use Rector\Config\RectorConfig; -use Rector\ValueObject\PhpVersion; use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector; use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector; @@ -39,6 +38,7 @@ use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector; use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector; use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector; +use Rector\ValueObject\PhpVersion; return static function (RectorConfig $rectorConfig): void { $rectorConfig->sets([ From c10c6a18b3263c6439852ae81f09af3328907b8a Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 9 Jan 2024 16:42:46 +0700 Subject: [PATCH 10/14] cs fix --- 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 84a10cb..62e0146 100644 --- a/src/Template/rector.php +++ b/src/Template/rector.php @@ -21,7 +21,6 @@ use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector; use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; use Rector\Config\RectorConfig; -use Rector\ValueObject\PhpVersion; use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector; use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector; @@ -39,6 +38,7 @@ use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector; use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector; use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector; +use Rector\ValueObject\PhpVersion; return static function (RectorConfig $rectorConfig): void { $rectorConfig->sets([ From 66040bd66249523665192e646259cdeb1a320ed6 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 17 Jan 2024 08:58:48 +0900 Subject: [PATCH 11/14] Update MySQL to 8.0 --- src/docker/README.md | 2 +- src/docker/docker-compose.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docker/README.md b/src/docker/README.md index 0a86293..5262198 100644 --- a/src/docker/README.md +++ b/src/docker/README.md @@ -4,7 +4,7 @@ - PostgreSQL 13 - SQL Server 2019 -- MySQL 5.7 +- MySQL 8.0 - MailHog ## Usage diff --git a/src/docker/docker-compose.yaml b/src/docker/docker-compose.yaml index 22b82c0..970c7e9 100644 --- a/src/docker/docker-compose.yaml +++ b/src/docker/docker-compose.yaml @@ -20,7 +20,7 @@ services: MSSQL_PID: Developer mysql: - image: mysql:5.7 + image: mysql:8.0 ports: - "3306:3306" environment: From 66e67b6b6e35c28d7a0bc86ea6328345fb120dfe Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 17 Jan 2024 08:59:16 +0900 Subject: [PATCH 12/14] docs: add missing Oracle --- src/docker/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/docker/README.md b/src/docker/README.md index 5262198..6f945dc 100644 --- a/src/docker/README.md +++ b/src/docker/README.md @@ -5,6 +5,7 @@ - PostgreSQL 13 - SQL Server 2019 - MySQL 8.0 +- Oracle Database 21c XE - MailHog ## Usage From 441bb84b8b540345f38501ec61ac536eb8456d91 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 08:10:16 +0000 Subject: [PATCH 13/14] chore(deps): bump actions/cache from 3 to 4 Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/phpcsfixer.yml | 2 +- .github/workflows/phpstan.yml | 4 ++-- .github/workflows/psalm.yml | 4 ++-- .github/workflows/rector.yml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/phpcsfixer.yml b/.github/workflows/phpcsfixer.yml index 59c867c..9ac8b7f 100644 --- a/.github/workflows/phpcsfixer.yml +++ b/.github/workflows/phpcsfixer.yml @@ -37,7 +37,7 @@ jobs: run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.COMPOSER_CACHE_FILES_DIR }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }} diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 638291d..dbb78a7 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -46,7 +46,7 @@ jobs: run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.COMPOSER_CACHE_FILES_DIR }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }} @@ -56,7 +56,7 @@ jobs: run: mkdir -p build/phpstan - name: Cache PHPStan results - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: build/phpstan key: ${{ runner.os }}-phpstan-${{ github.sha }} diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index b28b1fc..1d3c7cb 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -42,7 +42,7 @@ jobs: run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.COMPOSER_CACHE_FILES_DIR }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }} @@ -52,7 +52,7 @@ jobs: run: mkdir -p build/psalm - name: Cache Psalm results - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: build/psalm key: ${{ runner.os }}-psalm-${{ github.sha }} diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index d30b099..fdb7bdb 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -46,7 +46,7 @@ jobs: run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.COMPOSER_CACHE_FILES_DIR }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }} From 76359609c0e7134c8eebf709915078b0c14ddf42 Mon Sep 17 00:00:00 2001 From: kenjis Date: Sun, 21 Jan 2024 15:19:32 +0900 Subject: [PATCH 14/14] bump actions/cache from 3 to 4 --- src/Template/.github/workflows/deptrac.yml | 4 ++-- src/Template/.github/workflows/infection.yml | 2 +- src/Template/.github/workflows/phpcsfixer.yml | 2 +- src/Template/.github/workflows/phpstan.yml | 4 ++-- src/Template/.github/workflows/phpunit.yml | 2 +- src/Template/.github/workflows/psalm.yml | 4 ++-- src/Template/.github/workflows/rector.yml | 2 +- src/Template/.github/workflows/unused.yml | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Template/.github/workflows/deptrac.yml b/src/Template/.github/workflows/deptrac.yml index 078f78b..9f9222f 100644 --- a/src/Template/.github/workflows/deptrac.yml +++ b/src/Template/.github/workflows/deptrac.yml @@ -42,7 +42,7 @@ jobs: run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.COMPOSER_CACHE_FILES_DIR }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }} @@ -52,7 +52,7 @@ jobs: run: mkdir -p build/ - name: Cache Deptrac results - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: build key: ${{ runner.os }}-deptrac-${{ github.sha }} diff --git a/src/Template/.github/workflows/infection.yml b/src/Template/.github/workflows/infection.yml index 82501aa..8123ec6 100644 --- a/src/Template/.github/workflows/infection.yml +++ b/src/Template/.github/workflows/infection.yml @@ -40,7 +40,7 @@ jobs: run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.COMPOSER_CACHE_FILES_DIR }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }} diff --git a/src/Template/.github/workflows/phpcsfixer.yml b/src/Template/.github/workflows/phpcsfixer.yml index 59c867c..9ac8b7f 100644 --- a/src/Template/.github/workflows/phpcsfixer.yml +++ b/src/Template/.github/workflows/phpcsfixer.yml @@ -37,7 +37,7 @@ jobs: run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.COMPOSER_CACHE_FILES_DIR }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }} diff --git a/src/Template/.github/workflows/phpstan.yml b/src/Template/.github/workflows/phpstan.yml index 9be7e20..28343d8 100644 --- a/src/Template/.github/workflows/phpstan.yml +++ b/src/Template/.github/workflows/phpstan.yml @@ -46,7 +46,7 @@ jobs: run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.COMPOSER_CACHE_FILES_DIR }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }} @@ -56,7 +56,7 @@ jobs: run: mkdir -p build/phpstan - name: Cache PHPStan results - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: build/phpstan key: ${{ runner.os }}-phpstan-${{ github.sha }} diff --git a/src/Template/.github/workflows/phpunit.yml b/src/Template/.github/workflows/phpunit.yml index 848dba4..9f0b89e 100644 --- a/src/Template/.github/workflows/phpunit.yml +++ b/src/Template/.github/workflows/phpunit.yml @@ -45,7 +45,7 @@ jobs: run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.COMPOSER_CACHE_FILES_DIR }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }} diff --git a/src/Template/.github/workflows/psalm.yml b/src/Template/.github/workflows/psalm.yml index b28b1fc..1d3c7cb 100644 --- a/src/Template/.github/workflows/psalm.yml +++ b/src/Template/.github/workflows/psalm.yml @@ -42,7 +42,7 @@ jobs: run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.COMPOSER_CACHE_FILES_DIR }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }} @@ -52,7 +52,7 @@ jobs: run: mkdir -p build/psalm - name: Cache Psalm results - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: build/psalm key: ${{ runner.os }}-psalm-${{ github.sha }} diff --git a/src/Template/.github/workflows/rector.yml b/src/Template/.github/workflows/rector.yml index 4b3ec16..60d159d 100644 --- a/src/Template/.github/workflows/rector.yml +++ b/src/Template/.github/workflows/rector.yml @@ -46,7 +46,7 @@ jobs: run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.COMPOSER_CACHE_FILES_DIR }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }} diff --git a/src/Template/.github/workflows/unused.yml b/src/Template/.github/workflows/unused.yml index a7f9844..d5d1d96 100644 --- a/src/Template/.github/workflows/unused.yml +++ b/src/Template/.github/workflows/unused.yml @@ -40,7 +40,7 @@ jobs: run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.COMPOSER_CACHE_FILES_DIR }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }}