Skip to content

Commit f248fe5

Browse files
committed
Drop PHP 8.3
1 parent 7a33aa6 commit f248fe5

8 files changed

Lines changed: 15 additions & 20 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
strategy:
1010
fail-fast: true
1111
matrix:
12-
php: ['8.3', '8.4']
12+
php: ['8.4']
1313
symfony: ['6.4.*', '7.3.*']
1414
composer-flags: ['--prefer-stable']
1515
can-fail: [false]
1616
include:
17-
- php: '8.3'
17+
- php: '8.4'
1818
symfony: '6.4.*'
1919
composer-flags: '--prefer-stable --prefer-lowest'
2020
can-fail: false

.php-cs-fixer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
->setRules([
55
'@Symfony' => true,
66
'@Symfony:risky' => true,
7-
'@PHP83Migration' => true,
8-
'@PHP82Migration:risky' => true,
9-
'@PHPUnit100Migration:risky' => true,
7+
'@PHP8x4Migration' => true,
8+
'@PHP8x2Migration:risky' => true,
9+
'@PHPUnit10x0Migration:risky' => true,
1010
'array_syntax' => ['syntax' => 'short'],
1111
'blank_line_after_opening_tag' => false,
1212
'fopen_flags' => false,

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"license": "MIT",
1212
"require": {
13-
"php": "8.3.* || 8.4.* || 8.5.*",
13+
"php": "8.4.* || 8.5.*",
1414
"ext-pcntl": "*",
1515
"babdev/websocket-server": "0.1.*",
1616
"symfony/config": "^6.4 || ^7.3",

docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ The below table shows the supported PHP and Symfony versions for this bundle.
1515

1616
| Version | Status | PHP Versions | Symfony Versions |
1717
|---------|----------------|--------------|------------------|
18-
| 1.x | In Development | 8.3-8.5 | 6.4, 7.3 |
18+
| 1.x | In Development | 8.4-8.5 | 6.4, 7.3 |

rector.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
use Rector\Config\RectorConfig;
44
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
55
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
6-
use Rector\Symfony\Set\SymfonySetList;
76

87
return RectorConfig::configure()
98
->withPaths([
@@ -34,8 +33,4 @@
3433
__DIR__.'/phpstan.neon',
3534
])
3635
->withPhpSets()
37-
->withPreparedSets(codeQuality: true, phpunitCodeQuality: true)
38-
->withSets([
39-
SymfonySetList::SYMFONY_64,
40-
])
41-
->withPreparedSets(codeQuality: true);
36+
->withPreparedSets(codeQuality: true, phpunitCodeQuality: true);

tests/Authentication/DefaultAuthenticatorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testTheAuthenticatorDoesNotAuthenticateAConnectionWhenItHasNoPro
2525
$tokenStorage->expects(self::never())
2626
->method('addToken');
2727

28-
(new DefaultAuthenticator([], $tokenStorage))->authenticate($connection);
28+
new DefaultAuthenticator([], $tokenStorage)->authenticate($connection);
2929
}
3030

3131
public function testTheAuthenticatorAuthenticatesAConnectionWhenItHasOneProvider(): void
@@ -59,7 +59,7 @@ public function testTheAuthenticatorAuthenticatesAConnectionWhenItHasOneProvider
5959
->with($connection)
6060
->willReturn($token);
6161

62-
(new DefaultAuthenticator([$authenticationProvider], $tokenStorage))->authenticate($connection);
62+
new DefaultAuthenticator([$authenticationProvider], $tokenStorage)->authenticate($connection);
6363
}
6464

6565
public function testTheAuthenticatorAuthenticatesAConnectionUsingTheFirstSupportedProvider(): void
@@ -111,6 +111,6 @@ public function testTheAuthenticatorAuthenticatesAConnectionUsingTheFirstSupport
111111
$authenticationProvider3->expects(self::never())
112112
->method('authenticate');
113113

114-
(new DefaultAuthenticator([$authenticationProvider1, $authenticationProvider2, $authenticationProvider3], $tokenStorage))->authenticate($connection);
114+
new DefaultAuthenticator([$authenticationProvider1, $authenticationProvider2, $authenticationProvider3], $tokenStorage)->authenticate($connection);
115115
}
116116
}

tests/CacheWarmer/RouterCacheWarmerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testWarmUpWithNoBuildDir(): void
3030
self::assertSame([
3131
UrlGenerator::class,
3232
UrlMatcher::class,
33-
], (new RouterCacheWarmer($innerCacheWarmer, $cacheFolder))->warmUp($cacheDir, null));
33+
], new RouterCacheWarmer($innerCacheWarmer, $cacheFolder)->warmUp($cacheDir, null));
3434
}
3535

3636
public function testWarmUpWithBuildDir(): void
@@ -53,6 +53,6 @@ public function testWarmUpWithBuildDir(): void
5353
self::assertSame([
5454
UrlGenerator::class,
5555
UrlMatcher::class,
56-
], (new RouterCacheWarmer($innerCacheWarmer, $cacheFolder))->warmUp($cacheDir, $buildDir));
56+
], new RouterCacheWarmer($innerCacheWarmer, $cacheFolder)->warmUp($cacheDir, $buildDir));
5757
}
5858
}

tests/Server/ServiceBasedMiddlewareStackBuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ public function testReturnsInjectedMiddlewareStack(): void
1515
/** @var MockObject&ServerMiddleware $middleware */
1616
$middleware = $this->createMock(ServerMiddleware::class);
1717

18-
self::assertSame($middleware, (new ServiceBasedMiddlewareStackBuilder($middleware))->build());
18+
self::assertSame($middleware, new ServiceBasedMiddlewareStackBuilder($middleware)->build());
1919
}
2020

2121
public function testRaisesAnErrorWhenTheMiddlewareIsNotInjected(): void
2222
{
2323
$this->expectException(MiddlewareNotConfigured::class);
2424

25-
(new ServiceBasedMiddlewareStackBuilder())->build();
25+
new ServiceBasedMiddlewareStackBuilder()->build();
2626
}
2727
}

0 commit comments

Comments
 (0)