10000 Merge branch '5.1' · symfony/form@c340d0e · GitHub
[go: up one dir, main page]

Skip to content

Commit c340d0e

Browse files
Merge branch '5.1'
* 5.1: (33 commits) [Cache] $lifetime cannot be null [Serializer] minor cleanup fix merge Run PHP 8 as 7.4.99 Remove calls to deprecated ReflectionParameter::getClass(). [VarDumper] fix PHP 8 support Removed "services" prototype node from "custom_authenticator" Add php 8 to travis. [Cache] Accessing undefined constants raises an Error in php8 [Cache] allow DBAL v3 Skip Doctrine DBAL on php 8 until we have a compatible version. [DomCrawler] Catch expected ValueError. Made method signatures compatible with their corresponding traits. [ErrorHandler] Apply php8 fixes from Debug component. [DomCrawler] Catch expected ValueError. [Validator] Catch expected ValueError. [VarDumper] ReflectionFunction::isDisabled() is deprecated. [BrowserKit] Raw body with custom Content-Type header Revert symfony/symfony#34986 Make ExpressionLanguageSyntax validator usable with annotation ...
2 parents 63ccd6c + 4e5dd95 commit c340d0e

File tree

7 files changed

+0
-139
lines changed

7 files changed

+0
-139
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ CHANGELOG
1212
* Added a `ChoiceList` facade to leverage explicit choice list caching based on options
1313
* Added an `AbstractChoiceLoader` to simplify implementations and handle global optimizations
1414
* The `view_timezone` option defaults to the `model_timezone` if no `reference_date` is configured.
15-
* Added default `inputmode` attribute to Search, Email and Tel form types.
1615
* Implementing the `FormConfigInterface` without implementing the `getIsEmptyCallback()` method
1716
is deprecated. The method will be added to the interface in 6.0.
1817
* Implementing the `FormConfigBuilderInterface` without implementing the `setIsEmptyCallback()` method

Extension/Core/Type/EmailType.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
namespace Symfony\Component\Form\Extension\Core\Type;
1313

1414
use Symfony\Component\Form\AbstractType;
15-
use Symfony\Component\Form\FormInterface;
16-
use Symfony\Component\Form\FormView;
1715

1816
class EmailType extends AbstractType
1917
{
@@ -25,14 +23,6 @@ public function getParent()
2523
return TextType::class;
2624
}
2725

28-
/**
29-
* {@inheritdoc}
30-
*/
31-
public function buildView(FormView $view, FormInterface $form, array $options)
32-
{
33-
$view->vars['attr']['inputmode'] = $options['attr']['inputmode'] ?? 'email';
34-
}
35-
3626
/**
3727
* {@inheritdoc}
3828
*/

Extension/Core/Type/SearchType.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
namespace Symfony\Component\Form\Extension\Core\Type;
1313

1414
use Symfony\Component\Form\AbstractType;
15-
use Symfony\Component\Form\FormInterface;
16-
use Symfony\Component\Form\FormView;
1715

1816
class SearchType extends AbstractType
1917
{
@@ -25,14 +23,6 @@ public function getParent()
2523
return TextType::class;
2624
}
2725

28-
/**
29-
* {@inheritdoc}
30-
*/
31-
public function buildView(FormView $view, FormInterface $form, array $options)
32-
{
33-
$view->vars['attr']['inputmode'] = $options['attr']['inputmode'] ?? 'search';
34-
}
35-
3626
/**
3727
* {@inheritdoc}
3828
*/

Extension/Core/Type/TelType.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
namespace Symfony\Component\Form\Extension\Core\Type;
1313

1414
use Symfony\Component\Form\AbstractType;
15-
use Symfony\Component\Form\FormInterface;
16-
use Symfony\Component\Form\FormView;
1715

1816
class TelType extends AbstractType
1917
{
@@ -25,14 +23,6 @@ public function getParent()
2523
return TextType::class;
2624
}
2725

28-
/**
29-
* {@inheritdoc}
30-
*/
31-
public function buildView(FormView $view, FormInterface $form, array $options)
32-
{
33-
$view->vars['attr']['inputmode'] = $options['attr']['inputmode'] ?? 'tel';
34-
}
35-
3626
/**
3727
* {@inheritdoc}
3828
*/

Tests/Extension/Core/Type/EmailTypeTest.php

Lines changed: 0 additions & 36 deletions
This file was deleted.

Tests/Extension/Core/Type/SearchTypeTest.php

Lines changed: 0 additions & 36 deletions
This file was deleted.

Tests/Extension/Core/Type/TelTypeTest.php

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0