Skip to content

Commit f5f8723

Browse files
Merge branch '7.3' into 7.4
* 7.3: [FrameworkBundle] Fix wiring JsonStreamReader
2 parents 421fffe + b9321aa commit f5f8723

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

JsonStreamReader.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,13 @@ public function __construct(
4444
private ContainerInterface $valueTransformers,
4545
PropertyMetadataLoaderInterface $propertyMetadataLoader,
4646
string $streamReadersDir,
47+
ConfigCacheFactoryInterface|string|null $configCacheFactory = null,
4748
?string $lazyGhostsDir = null,
48-
?ConfigCacheFactoryInterface $configCacheFactory = null,
4949
) {
50+
if (\is_string($configCacheFactory)) {
51+
$lazyGhostsDir = $configCacheFactory;
52+
$configCacheFactory = null;
53+
}
5054
$this->streamReaderGenerator = new StreamReaderGenerator($propertyMetadataLoader, $streamReadersDir, $configCacheFactory);
5155
$this->instantiator = new Instantiator();
5256
$this->lazyInstantiator = new LazyInstantiator($lazyGhostsDir);

0 commit comments

Comments
 (0)