mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 13:03:50 +00:00
Apply rector rules: symfony up to 54
This commit is contained in:
@@ -238,10 +238,9 @@ final class DocGenObjectNormalizerTest extends KernelTestCase
|
||||
class TestableParentClass
|
||||
{
|
||||
/**
|
||||
* @Serializer\Groups("docgen:read")
|
||||
*
|
||||
* @Serializer\Context(normalizationContext={"groups": "docgen:read:foo"}, groups={"docgen:read"})
|
||||
*/
|
||||
#[Serializer\Groups('docgen:read')]
|
||||
public ?TestableChildClass $child;
|
||||
|
||||
public function __construct()
|
||||
@@ -252,27 +251,19 @@ class TestableParentClass
|
||||
|
||||
class TestableChildClass
|
||||
{
|
||||
/**
|
||||
* @Serializer\Groups("docgen:read")
|
||||
*/
|
||||
#[Serializer\Groups('docgen:read')]
|
||||
public string $baz = 'bloup';
|
||||
|
||||
/**
|
||||
* @Serializer\Groups("docgen:read:foo")
|
||||
*/
|
||||
#[Serializer\Groups('docgen:read:foo')]
|
||||
public string $foo = 'bar';
|
||||
}
|
||||
|
||||
class TestableClassWithBool
|
||||
{
|
||||
/**
|
||||
* @Serializer\Groups("docgen:read")
|
||||
*/
|
||||
#[Serializer\Groups('docgen:read')]
|
||||
public bool $foo;
|
||||
|
||||
/**
|
||||
* @Serializer\Groups("docgen:read")
|
||||
*/
|
||||
#[Serializer\Groups('docgen:read')]
|
||||
public function getThing(): bool
|
||||
{
|
||||
return true;
|
||||
@@ -281,9 +272,7 @@ class TestableClassWithBool
|
||||
|
||||
class TestableWithIntersectionReadableCollection
|
||||
{
|
||||
/**
|
||||
* @Serializer\Groups("docgen:read")
|
||||
*/
|
||||
#[Serializer\Groups('docgen:read')]
|
||||
public ReadableCollection&Selectable $collection;
|
||||
|
||||
public function __construct()
|
||||
@@ -294,9 +283,7 @@ class TestableWithIntersectionReadableCollection
|
||||
|
||||
class TestableWithCollection
|
||||
{
|
||||
/**
|
||||
* @Serializer\Groups("docgen:read")
|
||||
*/
|
||||
#[Serializer\Groups('docgen:read')]
|
||||
public Collection&Selectable $collection;
|
||||
|
||||
public function __construct()
|
||||
|
Reference in New Issue
Block a user