Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Freeze to Doctrine orm 2.9 (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
gilles-g authored Oct 7, 2021
1 parent 99438ef commit 0b95e8e
Show file tree
Hide file tree
Showing 25 changed files with 47 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Event/Subscriber/DoctrineDBALSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class DoctrineDBALSubscriber extends AbstractDoctrineSubscriber implements EventSubscriberInterface
{
/**
* {@inheritDoc}
* @return array
*/
public static function getSubscribedEvents()
{
Expand Down
2 changes: 1 addition & 1 deletion Event/Subscriber/DoctrineMongodbSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class DoctrineMongodbSubscriber implements EventSubscriberInterface
{
/**
* {@inheritDoc}
* @return array
*/
public static function getSubscribedEvents()
{
Expand Down
2 changes: 1 addition & 1 deletion Event/Subscriber/DoctrineORMSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class DoctrineORMSubscriber extends AbstractDoctrineSubscriber implements EventSubscriberInterface
{
/**
* {@inheritDoc}
* @return array
*/
public static function getSubscribedEvents()
{
Expand Down
2 changes: 1 addition & 1 deletion Filter/Form/FilterExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class FilterExtension extends AbstractExtension
{
/**
* {@inheritdoc}
* @return array
*/
protected function loadTypes()
{
Expand Down
4 changes: 2 additions & 2 deletions Filter/Form/Type/BooleanFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ class BooleanFilterType extends AbstractType
const VALUE_NO = 'n';

/**
* {@inheritdoc}
* @return ?string
*/
public function getParent()
{
return ChoiceType::class;
}

/**
* {@inheritdoc}
* @return string
*/
public function getBlockPrefix()
{
Expand Down
4 changes: 2 additions & 2 deletions Filter/Form/Type/CheckboxFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ public function configureOptions(OptionsResolver $resolver)
}

/**
* {@inheritdoc}
* @return ?string
*/
public function getParent()
{
return CheckboxType::class;
}

/**
* {@inheritdoc}
* @return string
*/
public function getBlockPrefix()
{
Expand Down
4 changes: 2 additions & 2 deletions Filter/Form/Type/ChoiceFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ public function configureOptions(OptionsResolver $resolver)
}

/**
* {@inheritdoc}
* @return ?string
*/
public function getParent()
{
return ChoiceType::class;
}

/**
* {@inheritdoc}
* @return string
*/
public function getBlockPrefix()
{
Expand Down
4 changes: 2 additions & 2 deletions Filter/Form/Type/CollectionAdapterFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ public function configureOptions(OptionsResolver $resolver)
}

/**
* {@inheritdoc}
* @return ?string
*/
public function getParent()
{
return SharedableFilterType::class;
}

/**
* {@inheritdoc}
* @return string
*/
public function getBlockPrefix()
{
Expand Down
4 changes: 2 additions & 2 deletions Filter/Form/Type/DateFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ public function configureOptions(OptionsResolver $resolver)
}

/**
* {@inheritdoc}
* @return ?string
*/
public function getParent()
{
return DateType::class;
}

/**
* {@inheritdoc}
* @return string
*/
public function getBlockPrefix()
{
Expand Down
2 changes: 1 addition & 1 deletion Filter/Form/Type/DateRangeFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function configureOptions(OptionsResolver $resolver)
}

/**
* {@inheritdoc}
* @return string
*/
public function getBlockPrefix()
{
Expand Down
4 changes: 2 additions & 2 deletions Filter/Form/Type/DateTimeFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ public function configureOptions(OptionsResolver $resolver)
}

/**
* {@inheritdoc}
* @return ?string
*/
public function getParent()
{
return DateTimeType::class;
}

/**
* {@inheritdoc}
* @return string
*/
public function getBlockPrefix()
{
Expand Down
2 changes: 1 addition & 1 deletion Filter/Form/Type/DateTimeRangeFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function configureOptions(OptionsResolver $resolver)
}

/**
* {@inheritdoc}
* @return string
*/
public function getBlockPrefix()
{
Expand Down
4 changes: 2 additions & 2 deletions Filter/Form/Type/DocumentFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ public function configureOptions(OptionsResolver $resolver)
}

/**
* {@inheritdoc}
* @return ?string
*/
public function getParent()
{
return DocumentType::class;
}

/**
* {@inheritdoc}
* @return string
*/
public function getBlockPrefix()
{
Expand Down
4 changes: 2 additions & 2 deletions Filter/Form/Type/EntityFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ public function configureOptions(OptionsResolver $resolver)
}

/**
* {@inheritdoc}
* @return ?string
*/
public function getParent()
{
return EntityType::class;
}

/**
* {@inheritdoc}
* @return string
*/
public function getBlockPrefix()
{
Expand Down
4 changes: 2 additions & 2 deletions Filter/Form/Type/NumberFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ public function configureOptions(OptionsResolver $resolver)
}

/**
* {@inheritdoc}
* @return ?string
*/
public function getParent()
{
return NumberType::class;
}

/**
* {@inheritdoc}
* @return string
*/
public function getBlockPrefix()
{
Expand Down
2 changes: 1 addition & 1 deletion Filter/Form/Type/NumberRangeFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function configureOptions(OptionsResolver $resolver)
}

/**
* {@inheritdoc}
* @return string
*/
public function getBlockPrefix()
{
Expand Down
2 changes: 1 addition & 1 deletion Filter/Form/Type/SharedableFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function configureOptions(OptionsResolver $resolver)
}

/**
* {@inheritdoc}
* @return string
*/
public function getBlockPrefix()
{
Expand Down
4 changes: 2 additions & 2 deletions Filter/Form/Type/TextFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ public function configureOptions(OptionsResolver $resolver)
}

/**
* {@inheritdoc}
* @return ?string
*/
public function getParent()
{
return TextType::class;
}

/**
* {@inheritdoc}
* @return string
*/
public function getBlockPrefix()
{
Expand Down
3 changes: 3 additions & 0 deletions Tests/Fixtures/Filter/FormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)
));
}

/**
* @return string
*/
public function getBlockPrefix()
{
return 'my_form';
Expand Down
3 changes: 3 additions & 0 deletions Tests/Fixtures/Filter/ItemCallbackFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)
));
}

/**
* @return string
*/
public function getBlockPrefix()
{
return 'item_filter';
Expand Down
3 changes: 3 additions & 0 deletions Tests/Fixtures/Filter/ItemEmbeddedOptionsFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ public function configureOptions(OptionsResolver $resolver)
));
}

/**
* @return string
*/
public function getBlockPrefix()
{
return 'item_filter';
Expand Down
3 changes: 3 additions & 0 deletions Tests/Fixtures/Filter/ItemFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ public function configureOptions(OptionsResolver $resolver)
));
}

/**
* @return string
*/
public function getBlockPrefix()
{
return 'item_filter';
Expand Down
3 changes: 3 additions & 0 deletions Tests/Fixtures/Filter/OptionFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)
$builder->add('rank', NumberFilterType::class);
}

/**
* @return string
*/
public function getBlockPrefix()
{
return 'options_filter';
Expand Down
3 changes: 3 additions & 0 deletions Tests/Fixtures/Filter/RangeFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)
;
}

/**
* @return string
*/
public function getBlockPrefix()
{
return 'item_filter';
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"require": {
"php": ">=7.1",
"doctrine/orm": "^2.7",
"doctrine/orm": "2.9.*",
"symfony/form": "^4.4|^5.1",
"symfony/framework-bundle": "^4.4|^5.1"
},
Expand Down

0 comments on commit 0b95e8e

Please sign in to comment.