Skip to content

Commit 93e8e3d

Browse files
committed
Fix typos
1 parent 721f6a4 commit 93e8e3d

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

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)