Skip to content

Commit c46862e

Browse files
authored
feat(bundle): downgrade to php82
1 parent a8f358c commit c46862e

File tree

9 files changed

+12
-17
lines changed

9 files changed

+12
-17
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
include:
20-
- { php: 8.3, symfony: "6.4.*", composer-flags: '--prefer-dist' } # LTS with last stable PHP
20+
- { php: 8.2, symfony: "6.4.*", composer-flags: '--prefer-dist' } # LTS with last stable PHP
2121
- { php: 8.3, symfony: "7.1.*", composer-flags: '--prefer-dist' } # Stable Symfony branches
2222
- { php: 8.4, symfony: "7.2.*", composer-flags: '--prefer-dist' } # Stable Symfony branches
2323

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525
},
2626
"require": {
27-
"php": ">=8.3",
27+
"php": ">=8.2",
2828
"doctrine/orm": "3.* || ^4.0",
2929
"symfony/config": "^6.4|^7.0",
3030
"symfony/dependency-injection": "^6.4|^7.0",

rector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
->withPaths([
2525
__DIR__
2626
])
27-
->withPhpVersion(PhpVersion::PHP_83)
28-
->withSets([SetList::PHP_83])
27+
->withPhpVersion(PhpVersion::PHP_82)
28+
->withSets([SetList::PHP_82])
2929
->withImportNames()
3030
->withPreparedSets(
3131
deadCode: true,

src/Notification/MailerNotification.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
use Symfony\Component\Mime\Address;
1919
use Symfony\Contracts\Translation\TranslatorInterface;
2020

21-
final class MailerNotification implements NotificationInterface
21+
final readonly class MailerNotification implements NotificationInterface
2222
{
2323
/**
2424
* @param mixed[] $addresses
2525
*/
2626
public function __construct(
27-
private readonly MailerInterface $mailer,
28-
private readonly TranslatorInterface $translator,
29-
private readonly array $addresses,
27+
private MailerInterface $mailer,
28+
private TranslatorInterface $translator,
29+
private array $addresses,
3030
) {
3131
}
3232

tests/DependencyInjection/SpiriitAuthLogExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private function createContainer(array $configs = []): ContainerBuilder
6262
],
6363
]));
6464

65-
$container->set('kernel', function () {
65+
$container->set('kernel', function (): Kernel {
6666
return new Kernel('test', false);
6767
});
6868

tests/Integration/KernelTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ class KernelTest extends KernelTestCase
2323
{
2424
protected function setUp(): void
2525
{
26-
parent::setUp();
27-
2826
$fs = new Filesystem();
2927
$fs->remove(sys_get_temp_dir().'/SpiriitAuthLogBundle/');
3028
}

tests/Integration/Stubs/BundleExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ class BundleExtension extends Extension
1818
{
1919
public function load(array $configs, ContainerBuilder $container): void
2020
{
21-
$phpLoader = new PhpFileLoader($container, new FileLocator(__DIR__.'/../config'));
21+
new PhpFileLoader($container, new FileLocator(__DIR__.'/../config'));
2222
}
2323
}

tests/Integration/Stubs/Kernel.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ class Kernel extends BaseKernel
1919
/* @phpstan-ignore-next-line */
2020
public const IS_LEGACY = 5 > BaseKernel::MAJOR_VERSION;
2121

22-
/**
23-
* @var string
24-
*/
25-
private $config;
22+
private string $config;
2623

2724
public function __construct(string $environment, bool $debug, string $config = 'base')
2825
{

tests/Notification/MailerNotificationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testSend(): void
3636
],
3737
);
3838

39-
$user = new class implements AuthenticableLogInterface {
39+
new class implements AuthenticableLogInterface {
4040
public function getAuthenticationLogFactoryName(): string
4141
{
4242
return 'user';

0 commit comments

Comments
 (0)