Skip to content

Commit 3c2bc06

Browse files
authored
Check and fix spelling (#1084)
1 parent cf738da commit 3c2bc06

File tree

6 files changed

+19
-13
lines changed

6 files changed

+19
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
analyse:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1818
- uses: shivammathur/setup-php@v2
1919
with:
2020
php-version: '8.4'
@@ -27,6 +27,12 @@ jobs:
2727
- run: composer apply-typed_class_constant
2828
- run: composer analyse
2929

30+
spelling:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v5
34+
- uses: crate-ci/[email protected]
35+
3036
test:
3137
name: PHP ${{ matrix.php-version }} ${{ matrix.description }}
3238
strategy:
@@ -86,7 +92,7 @@ jobs:
8692
env:
8793
PHP_CS_FIXER_FUTURE_MODE: 1
8894
steps:
89-
- uses: actions/checkout@v4
95+
- uses: actions/checkout@v5
9096

9197
- uses: shivammathur/setup-php@v2
9298
with:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,13 @@ Function parameters, if any is having attribute or hook, must be separated by a
178178
<?php
179179
class Foo {
180180
public function __construct(
181-
#[Attibute1]
181+
#[Attribute1]
182182
private string $x,
183183
+
184-
#[Attibute2]
184+
#[Attribute2]
185185
private string $y,
186186
+
187-
#[Attibute3]
187+
#[Attribute3]
188188
private string $z,
189189
) {}
190190
}

src/Fixer/FunctionParameterSeparationFixer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ public function getDefinition(): FixerDefinitionInterface
3636
<?php
3737
class Foo {
3838
public function __construct(
39-
#[Attibute1]
39+
#[Attribute1]
4040
private string $x,
41-
#[Attibute2]
41+
#[Attribute2]
4242
private string $y,
43-
#[Attibute3]
43+
#[Attribute3]
4444
private string $z,
4545
) {}
4646
}

tests/Fixer/NoUselessParenthesisFixerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function createStatic() {
9696
yield ['<?php declare(ticks=1):enddeclare;
9797
for($i = 0; $i < 10; $i++): echo $i; endfor;
9898
foreach([1, 2, 3] as $i): echo $i; endforeach;
99-
if ($condition): echo 1; elseif ($otherContition): echo 2; else: echo 3; endif;
99+
if ($condition): echo 1; elseif ($otherCondition): echo 2; else: echo 3; endif;
100100
switch ($value): default: echo 4; endswitch;
101101
while(true): echo "na"; endwhile;
102102
'];

tests/Fixer/PhpUnitRequiresConstraintFixerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class FooTest extends TestCase {
6969
* @requires PHP >= 8.1
7070
*/
7171
public function testFoo1() {}
72-
public function testFo2o() {
72+
public function testFoo2() {
7373
new class extends TestCase {
7474
/**
7575
* @requires PHP >= 8.2
@@ -90,7 +90,7 @@ class FooTest extends TestCase {
9090
* @requires PHP 8.1
9191
*/
9292
public function testFoo1() {}
93-
public function testFo2o() {
93+
public function testFoo2() {
9494
new class extends TestCase {
9595
/**
9696
* @requires PHP 8.2

tests/Fixer/TypedClassConstantFixerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ class Bar {
312312
class HellCoreServiceManagerHelper
313313
{
314314
const mixed OPTION_666__YES__1010011010_VALUE_4_1_3
315-
= IS_OVERRIDEN_BY_BEELZEBOSS
315+
= IS_OVERRIDDEN_BY_BEELZEBOSS
316316
? "Hell yeah"
317317
: CIRCLES_MANAGER_ACCESS === [0o1232, 'super_manager', false, -66.6]
318318
? true
@@ -326,7 +326,7 @@ class HellCoreServiceManagerHelper
326326
class HellCoreServiceManagerHelper
327327
{
328328
const OPTION_666__YES__1010011010_VALUE_4_1_3
329-
= IS_OVERRIDEN_BY_BEELZEBOSS
329+
= IS_OVERRIDDEN_BY_BEELZEBOSS
330330
? "Hell yeah"
331331
: CIRCLES_MANAGER_ACCESS === [0o1232, 'super_manager', false, -66.6]
332332
? true

0 commit comments

Comments
 (0)