Skip to content

Commit

Permalink
Update the dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Jun 18, 2024
1 parent f811f45 commit e428cfc
Show file tree
Hide file tree
Showing 20 changed files with 29 additions and 23 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ jobs:
coverage: none

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false

- name: Install the dependencies
run: composer install --no-interaction --no-progress
uses: ramsey/composer-install@v3

- name: Run the unit tests
run: vendor/bin/phpunit
Expand All @@ -46,10 +48,14 @@ jobs:
coverage: none

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false

- name: Install the dependencies
run: composer install --ignore-platform-req=php --no-interaction --no-progress
uses: ramsey/composer-install@v3
with:
composer-options: --ignore-platform-req=php+

- name: Run the unit tests
run: vendor/bin/phpunit
2 changes: 1 addition & 1 deletion ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@
'header' => "This file is part of Contao.\n\n(c) Leo Feyer\n\n@license LGPL-3.0-or-later",
])
->withParallel()
->withCache(sys_get_temp_dir().'/ecs_ecs_cache')
->withCache(sys_get_temp_dir().'/ecs/ecs')
;
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
__DIR__.'/rector.php',
])
->withParallel()
->withCache(sys_get_temp_dir().'/ecs_rector_cache')
->withCache(sys_get_temp_dir().'/ecs/rector')
;
2 changes: 1 addition & 1 deletion tests/Fixer/AssertEqualsFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/CaseCommentIndentationFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/ChainedMethodBlockFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/CommentLengthFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/ExpectsWithCallbackFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/FindByPkFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/FunctionCallWithMultilineArrayFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/InlinePhpdocCommentFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/IsArrayNotEmptyFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/MockMethodChainingIndentationFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/MultiLineLambdaFunctionArgumentsFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/MultilineIfIndentationFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/NoExpectsThisAnyFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/NoSemicolonAfterShortEchoTagFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/SingleLineConfigureCommandFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/TypeHintOrderFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testFixesTheCode(string $code, string $expected): void
$this->assertSame($expected, $tokens->generateCode());
}

public function getCodeSamples(): \Generator
public static function getCodeSamples(): iterable
{
yield [
<<<'EOT'
Expand Down

0 comments on commit e428cfc

Please sign in to comment.