Skip to content

Commit c0d2552

Browse files
committed
Fix CI
1 parent 7ffdd8b commit c0d2552

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/Normalizer/Validator/ValidJsonVerifier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ public function ensureValidOnlyJsonTypes (mixed $value, int $maxDepth) : void
3737
* Searches through the value and looks for anything that isn't valid JSON
3838
* (scalars, arrays or empty objects).
3939
*
40-
* @return InvalidJsonElement|null returns null if everything is valid, otherwise the invalid value
41-
*
4240
* @param positive-int $maxDepth
41+
*
42+
* @return InvalidJsonElement|null returns null if everything is valid, otherwise the invalid value
4343
*/
4444
private function findInvalidJsonElement (mixed $value, array &$path, int $maxDepth) : ?InvalidJsonElement
4545
{

tests/Normalizer/SimpleNormalizerTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
use Symfony\Component\DependencyInjection\ServiceLocator;
1111
use Tests\Torr\SimpleNormalizer\Fixture\DummyVO;
1212
use Tests\Torr\SimpleNormalizer\Fixture\DummyVONormalizer;
13-
use Torr\SimpleNormalizer\Exception\InvalidMaxDepthException;
1413
use Torr\SimpleNormalizer\Exception\IncompleteNormalizationException;
14+
use Torr\SimpleNormalizer\Exception\InvalidMaxDepthException;
1515
use Torr\SimpleNormalizer\Exception\UnsupportedTypeException;
1616
use Torr\SimpleNormalizer\Normalizer\SimpleNormalizer;
1717
use Torr\SimpleNormalizer\Normalizer\Validator\ValidJsonVerifier;
@@ -180,7 +180,7 @@ public function testWithEntityManagerButNoMapping () : void
180180
->with(DummyVO::class)
181181
->willReturn(false);
182182

183-
$entityManager = $this->createStub(EntityManagerInterface::class);
183+
$entityManager = self::createStub(EntityManagerInterface::class);
184184
$entityManager->method("getMetadataFactory")->willReturn($metadataFactory);
185185

186186
$locator = $this->createMock(ServiceLocator::class);
@@ -219,7 +219,7 @@ public function testWithEntityManagerWithMapping () : void
219219
->with(DummyVO::class)
220220
->willReturn($classMetaData);
221221

222-
$entityManager = $this->createStub(EntityManagerInterface::class);
222+
$entityManager = self::createStub(EntityManagerInterface::class);
223223
$entityManager->method("getMetadataFactory")->willReturn($metadataFactory);
224224

225225
$locator = $this->createMock(ServiceLocator::class);
@@ -258,7 +258,7 @@ public function testWithEntityManagerCachesNormalizedClassName () : void
258258
->with(DummyVO::class)
259259
->willReturn($classMetaData);
260260

261-
$entityManager = $this->createStub(EntityManagerInterface::class);
261+
$entityManager = self::createStub(EntityManagerInterface::class);
262262
$entityManager->method("getMetadataFactory")->willReturn($metadataFactory);
263263

264264
$locator = $this->createMock(ServiceLocator::class);
@@ -293,7 +293,7 @@ public function testWithEntityManagerCachesUnmappedClassName () : void
293293
->expects(self::never())
294294
->method("getMetadataFor");
295295

296-
$entityManager = $this->createStub(EntityManagerInterface::class);
296+
$entityManager = self::createStub(EntityManagerInterface::class);
297297
$entityManager->method("getMetadataFactory")->willReturn($metadataFactory);
298298

299299
$locator = $this->createMock(ServiceLocator::class);

tests/Normalizer/Validator/ValidJsonVerifierTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,4 @@ public function testMaxDepthExceeded () : void
136136
],
137137
], 3);
138138
}
139-
140139
}

0 commit comments

Comments
 (0)