Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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/[email protected]

test:
name: PHP ${{ matrix.php-version }} ${{ matrix.description }}
strategy:
Expand Down Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ Function parameters, if any is having attribute or hook, must be separated by a
<?php
class Foo {
public function __construct(
#[Attibute1]
#[Attribute1]
private string $x,
+
#[Attibute2]
#[Attribute2]
private string $y,
+
#[Attibute3]
#[Attribute3]
private string $z,
) {}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Fixer/FunctionParameterSeparationFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ public function getDefinition(): FixerDefinitionInterface
<?php
class Foo {
public function __construct(
#[Attibute1]
#[Attribute1]
private string $x,
#[Attibute2]
#[Attribute2]
private string $y,
#[Attibute3]
#[Attribute3]
private string $z,
) {}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/NoUselessParenthesisFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function createStatic() {
yield ['<?php declare(ticks=1):enddeclare;
for($i = 0; $i < 10; $i++): echo $i; endfor;
foreach([1, 2, 3] as $i): echo $i; endforeach;
if ($condition): echo 1; elseif ($otherContition): echo 2; else: echo 3; endif;
if ($condition): echo 1; elseif ($otherCondition): echo 2; else: echo 3; endif;
switch ($value): default: echo 4; endswitch;
while(true): echo "na"; endwhile;
'];
Expand Down
4 changes: 2 additions & 2 deletions tests/Fixer/PhpUnitRequiresConstraintFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/Fixer/TypedClassConstantFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading