From 721f6a4c5f25e5bf6193d6d0a55f97b984689ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Wer=C5=82os?= Date: Wed, 3 Sep 2025 18:24:43 +0200 Subject: [PATCH 1/2] Check spelling --- .github/workflows/ci.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 83be9131..615df730 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,7 +14,7 @@ jobs: analyse: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: shivammathur/setup-php@v2 with: php-version: '8.4' @@ -27,6 +27,12 @@ jobs: - run: composer apply-typed_class_constant - run: composer analyse + spelling: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: crate-ci/typos@v1.36.0 + test: name: PHP ${{ matrix.php-version }} ${{ matrix.description }} strategy: @@ -86,7 +92,7 @@ jobs: env: PHP_CS_FIXER_FUTURE_MODE: 1 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: shivammathur/setup-php@v2 with: From 93e8e3d29d42ca2526083563261633fbe160e051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Wer=C5=82os?= Date: Wed, 3 Sep 2025 18:33:33 +0200 Subject: [PATCH 2/2] Fix typos --- README.md | 6 +++--- src/Fixer/FunctionParameterSeparationFixer.php | 6 +++--- tests/Fixer/NoUselessParenthesisFixerTest.php | 2 +- tests/Fixer/PhpUnitRequiresConstraintFixerTest.php | 4 ++-- tests/Fixer/TypedClassConstantFixerTest.php | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index a8b070bd..2917886e 100644 --- a/README.md +++ b/README.md @@ -178,13 +178,13 @@ Function parameters, if any is having attribute or hook, must be separated by a = 8.1 */ public function testFoo1() {} - public function testFo2o() { + public function testFoo2() { new class extends TestCase { /** * @requires PHP >= 8.2 @@ -90,7 +90,7 @@ class FooTest extends TestCase { * @requires PHP 8.1 */ public function testFoo1() {} - public function testFo2o() { + public function testFoo2() { new class extends TestCase { /** * @requires PHP 8.2 diff --git a/tests/Fixer/TypedClassConstantFixerTest.php b/tests/Fixer/TypedClassConstantFixerTest.php index c1d85a9a..7ced3c83 100644 --- a/tests/Fixer/TypedClassConstantFixerTest.php +++ b/tests/Fixer/TypedClassConstantFixerTest.php @@ -312,7 +312,7 @@ class Bar { class HellCoreServiceManagerHelper { const mixed OPTION_666__YES__1010011010_VALUE_4_1_3 - = IS_OVERRIDEN_BY_BEELZEBOSS + = IS_OVERRIDDEN_BY_BEELZEBOSS ? "Hell yeah" : CIRCLES_MANAGER_ACCESS === [0o1232, 'super_manager', false, -66.6] ? true @@ -326,7 +326,7 @@ class HellCoreServiceManagerHelper class HellCoreServiceManagerHelper { const OPTION_666__YES__1010011010_VALUE_4_1_3 - = IS_OVERRIDEN_BY_BEELZEBOSS + = IS_OVERRIDDEN_BY_BEELZEBOSS ? "Hell yeah" : CIRCLES_MANAGER_ACCESS === [0o1232, 'super_manager', false, -66.6] ? true