File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1212use Doctrine \ORM \QueryBuilder ;
1313use Doctrine \Persistence \ManagerRegistry ;
1414use Psr \Log \LoggerInterface ;
15- use Symfony \Component \PropertyInfo \Type ;
1615use Symfony \Component \Serializer \NameConverter \NameConverterInterface ;
16+ use Symfony \Component \TypeInfo \Type ;
1717
1818final class ContentNodeCampFilter extends AbstractFilter {
1919 use FiltersByCampCollaboration;
@@ -34,7 +34,7 @@ public function __construct(
3434 public function getDescription (string $ resourceClass ): array {
3535 return ['camp ' => [
3636 'property ' => self ::CAMP_QUERY_NAME ,
37- 'type ' => Type::BUILTIN_TYPE_STRING ,
37+ 'type ' => Type::string ()-> __toString () ,
3838 'required ' => false ,
3939 ]];
4040 }
Original file line number Diff line number Diff line change 99use Doctrine \ORM \QueryBuilder ;
1010use Doctrine \Persistence \ManagerRegistry ;
1111use Psr \Log \LoggerInterface ;
12- use Symfony \Component \PropertyInfo \Type ;
1312use Symfony \Component \Serializer \NameConverter \NameConverterInterface ;
13+ use Symfony \Component \TypeInfo \Type ;
1414
1515final class ContentNodeIsRootFilter extends AbstractFilter {
1616 public const IS_ROOT_QUERY_NAME = 'isRoot ' ;
@@ -28,7 +28,7 @@ public function __construct(
2828 public function getDescription (string $ resourceClass ): array {
2929 return ['isRoot ' => [
3030 'property ' => self ::IS_ROOT_QUERY_NAME ,
31- 'type ' => Type::BUILTIN_TYPE_BOOL ,
31+ 'type ' => Type::bool ()-> __toString () ,
3232 'required ' => false ,
3333 ]];
3434 }
Original file line number Diff line number Diff line change 1313use Doctrine \ORM \QueryBuilder ;
1414use Doctrine \Persistence \ManagerRegistry ;
1515use Psr \Log \LoggerInterface ;
16- use Symfony \Component \PropertyInfo \Type ;
1716use Symfony \Component \Serializer \NameConverter \NameConverterInterface ;
17+ use Symfony \Component \TypeInfo \Type ;
1818
1919final class ContentNodePeriodFilter extends AbstractFilter {
2020 use FiltersByCampCollaboration;
@@ -35,7 +35,7 @@ public function __construct(
3535 public function getDescription (string $ resourceClass ): array {
3636 return ['period ' => [
3737 'property ' => self ::PERIOD_QUERY_NAME ,
38- 'type ' => Type::BUILTIN_TYPE_STRING ,
38+ 'type ' => Type::string ()-> __toString () ,
3939 'required ' => false ,
4040 ]];
4141 }
Original file line number Diff line number Diff line change 1111use Doctrine \ORM \QueryBuilder ;
1212use Doctrine \Persistence \ManagerRegistry ;
1313use Psr \Log \LoggerInterface ;
14- use Symfony \Component \PropertyInfo \Type ;
1514use Symfony \Component \Serializer \NameConverter \NameConverterInterface ;
15+ use Symfony \Component \TypeInfo \Type ;
1616
1717final class MaterialItemPeriodFilter extends AbstractFilter {
1818 public const PERIOD_QUERY_NAME = 'period ' ;
@@ -31,7 +31,7 @@ public function __construct(
3131 public function getDescription (string $ resourceClass ): array {
3232 return ['period ' => [
3333 'property ' => self ::PERIOD_QUERY_NAME ,
34- 'type ' => Type::BUILTIN_TYPE_STRING ,
34+ 'type ' => Type::string ()-> __toString () ,
3535 'required ' => false ,
3636 ]];
3737 }
Original file line number Diff line number Diff line change 66use ApiPlatform \Metadata \Property \Factory \PropertyMetadataFactoryInterface ;
77use App \Serializer \PreventAutomaticEmbeddingPropertyMetadataFactory ;
88use PHPUnit \Framework \TestCase ;
9- use Symfony \Component \PropertyInfo \Type as PropertyInfoType ;
9+ use Symfony \Component \TypeInfo \Type ;
1010
1111/**
1212 * @internal
@@ -35,7 +35,7 @@ public function testCreateResetsReadableLinkAndWritableLinkToNull() {
3535 security: true ,
3636 securityPostDenormalize: 'securityPostDenormalize ' ,
3737 types: ['types ' ],
38- builtinTypes: [new PropertyInfoType (builtinType: PropertyInfoType:: BUILTIN_TYPE_INT )],
38+ builtinTypes: [Type:: int ( )],
3939 schema: ['schema ' ],
4040 initializable: true ,
4141 iris: ['iris ' ],
You can’t perform that action at this time.
0 commit comments