Skip to content

Commit 950d7c0

Browse files
mbabkerphansys
authored andcommitted
Fix CS errors
1 parent ea6959d commit 950d7c0

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

src/Tool/ClassUtils.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ private function __construct()
2828
* If doctrine/common is not installed, this method behaves like {@see get_class()}.
2929
*
3030
* @param TObject $object
31+
*
3132
* @return class-string<TObject>
33+
*
3234
* @template TObject of object
3335
*/
3436
public static function getClass(object $object): string

src/Tool/Logging/DBAL/QueryAnalyzer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ class QueryAnalyzer implements SQLLogger
3131

3232
/**
3333
* Start time of currently executed query
34-
*
35-
* @var float
3634
*/
37-
private $queryStartTime;
35+
private ?float $queryStartTime = null;
3836

3937
/**
4038
* Total execution time of all queries

tests/Gedmo/IpTraceable/IpTraceableTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public function testIpV4(): void
5858
$listener = new IpTraceableListener();
5959
$listener->setIpValue('123.218.45.39');
6060
static::assertSame('123.218.45.39', $listener->getFieldValue(
61-
$this->createStub(ClassMetadata::class),
61+
static::createStub(ClassMetadata::class),
6262
'ip',
63-
$this->createStub(AdapterInterface::class)
63+
static::createStub(AdapterInterface::class)
6464
));
6565
}
6666

@@ -69,9 +69,9 @@ public function testIpV6(): void
6969
$listener = new IpTraceableListener();
7070
$listener->setIpValue('2001:0db8:0000:85a3:0000:0000:ac1f:8001');
7171
static::assertSame('2001:0db8:0000:85a3:0000:0000:ac1f:8001', $listener->getFieldValue(
72-
$this->createStub(ClassMetadata::class),
72+
static::createStub(ClassMetadata::class),
7373
'ip',
74-
$this->createStub(AdapterInterface::class)
74+
static::createStub(AdapterInterface::class)
7575
));
7676
}
7777

tests/Gedmo/Mapping/MappingEventAdapterTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ final class MappingEventAdapterTest extends TestCase
2424
public function testCustomizedAdapter(): void
2525
{
2626
$subscriber = new EventSubscriberCustomMock();
27-
$args = new PrePersistEventArgs(new \stdClass(), $this->createStub(EntityManagerInterface::class));
27+
$args = new PrePersistEventArgs(new \stdClass(), static::createStub(EntityManagerInterface::class));
2828

2929
$adapter = $subscriber->getAdapter($args);
3030
static::assertInstanceOf(CustomizedORMAdapter::class, $adapter);
3131
}
3232

3333
public function testCorrectAdapter(): void
3434
{
35-
$emMock = $this->createStub(EntityManagerInterface::class);
35+
$emMock = static::createStub(EntityManagerInterface::class);
3636
$subscriber = new EventSubscriberMock();
3737
$args = new PrePersistEventArgs(new \stdClass(), $emMock);
3838

@@ -44,7 +44,7 @@ public function testCorrectAdapter(): void
4444

4545
public function testAdapterBehavior(): void
4646
{
47-
$emMock = $this->createStub(EntityManagerInterface::class);
47+
$emMock = static::createStub(EntityManagerInterface::class);
4848
$entity = new \stdClass();
4949

5050
$args = new PrePersistEventArgs($entity, $emMock);

tests/Gedmo/Tool/BaseTestCaseMongoODM.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function getDefaultDocumentManager(?EventManager $evm = null): Documen
8585
*/
8686
protected function getMockMappedDocumentManager(?EventManager $evm = null, ?Configuration $config = null): DocumentManager
8787
{
88-
$conn = $this->createStub(Client::class);
88+
$conn = static::createStub(Client::class);
8989

9090
$config ??= $this->getMockAnnotatedConfig();
9191

0 commit comments

Comments
 (0)