diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 77b5d468..6274340b 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -68,6 +68,11 @@ + + + + + diff --git a/src/Bridge/Laravel/Facades/Serializer.php b/src/Bridge/Laravel/Facades/Serializer.php new file mode 100644 index 00000000..da11941e --- /dev/null +++ b/src/Bridge/Laravel/Facades/Serializer.php @@ -0,0 +1,15 @@ +app->singleton(SymfonySerializer::class, SymfonySerializerInterface::class); + $this->app->alias(SymfonySerializerInterface::class, 'symfony.serializer'); } private function registerSerializerManager(): void diff --git a/tests/src/Functional/Bridge/Laravel/Facades/SerializerTest.php b/tests/src/Functional/Bridge/Laravel/Facades/SerializerTest.php new file mode 100644 index 00000000..a229f584 --- /dev/null +++ b/tests/src/Functional/Bridge/Laravel/Facades/SerializerTest.php @@ -0,0 +1,22 @@ +