Skip to content

Commit bd46580

Browse files
use final and private attributes
1 parent 22559d0 commit bd46580

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Bundle/WebProfilerBundle/EventListener/ProfilerLinkLogListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
/**
2121
* @author Jérémy Romey jeremyFreeAgent <[email protected]>
2222
*/
23-
class ProfilerLinkLogListener implements EventSubscriberInterface
23+
final class ProfilerLinkLogListener implements EventSubscriberInterface
2424
{
2525
public function __construct(
26-
protected ?LoggerInterface $logger = null,
26+
private ?LoggerInterface $logger = null,
2727
private ?UrlGeneratorInterface $urlGenerator = null,
2828
) {
2929
}

src/Symfony/Bundle/WebProfilerBundle/Tests/EventListener/ProfilerLinkLogListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/**
2525
* @author Jérémy Romey jeremyFreeAgent <[email protected]>
2626
*/
27-
class ProfilerLinkLogListenerTest extends TestCase
27+
final class ProfilerLinkLogListenerTest extends TestCase
2828
{
2929
public function testProfilerLinkLog()
3030
{

0 commit comments

Comments
 (0)