diff --git a/Tests/Command/CommandTestKernel.php b/Tests/Command/CommandTestKernel.php index f1e3b9ed..bb96b229 100644 --- a/Tests/Command/CommandTestKernel.php +++ b/Tests/Command/CommandTestKernel.php @@ -44,6 +44,7 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa $container->loadFromExtension('framework', [ 'secret' => 'foo', 'router' => ['utf8' => false], + 'http_method_override' => false, ]); $container->loadFromExtension('doctrine_mongodb', [ diff --git a/Tests/FixtureIntegrationTest.php b/Tests/FixtureIntegrationTest.php index 6c071bda..4ed48d48 100644 --- a/Tests/FixtureIntegrationTest.php +++ b/Tests/FixtureIntegrationTest.php @@ -335,6 +335,7 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load $c->loadFromExtension('framework', [ 'secret' => 'foo', 'router' => ['utf8' => false], + 'http_method_override' => false, ]); $callback = $this->servicesCallback; diff --git a/Tests/Fixtures/Form/Category.php b/Tests/Fixtures/Form/Category.php index bf5f8ff6..a5e3c6c5 100644 --- a/Tests/Fixtures/Form/Category.php +++ b/Tests/Fixtures/Form/Category.php @@ -42,12 +42,7 @@ public function __construct(string $name) $this->documents = new ArrayCollection(); } - /** - * Converts to string - * - * @return string - **/ - public function __toString() + public function __toString(): string { return $this->name; } diff --git a/Tests/Fixtures/Form/Document.php b/Tests/Fixtures/Form/Document.php index 520ac39f..f19aa8e2 100644 --- a/Tests/Fixtures/Form/Document.php +++ b/Tests/Fixtures/Form/Document.php @@ -44,12 +44,7 @@ public function __construct(ObjectId $id, string $name) $this->categories = new ArrayCollection(); } - /** - * Converts to string - * - * @return string - **/ - public function __toString() + public function __toString(): string { return $this->name; } diff --git a/Tests/Form/Type/GuesserTestType.php b/Tests/Form/Type/GuesserTestType.php index 4c562dcb..d0746a55 100644 --- a/Tests/Form/Type/GuesserTestType.php +++ b/Tests/Form/Type/GuesserTestType.php @@ -11,10 +11,7 @@ class GuesserTestType extends AbstractType { - /** - * @return void - */ - public function buildForm(FormBuilderInterface $builder, array $options) + public function buildForm(FormBuilderInterface $builder, array $options): void { $builder ->add('name') @@ -28,20 +25,14 @@ public function buildForm(FormBuilderInterface $builder, array $options) ->add('nonMappedField'); } - /** - * @return void - */ - public function configureOptions(OptionsResolver $resolver) + public function configureOptions(OptionsResolver $resolver): void { $resolver->setDefaults([ 'data_class' => Guesser::class, ])->setRequired('dm'); } - /** - * {@inheritDoc} - */ - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'guesser_test'; }