56 Commits

Author SHA1 Message Date
Dariusz Ruminski
813186bfe6 PHP CS Fixer: generic 8.1 cleanup 2025-12-16 07:44:40 +01:00
Christian Flothmann
5406e22128 Merge branch '7.4' into 8.0
* 7.4:
  Fix various typo
  Revert "minor #61697 [Form] Add better type information using PHPDoc (azjezz)"
  make test forward compatible
2025-09-19 09:04:08 +02:00
Nicolas Grekas
9e219122ae Revert "minor #61697 [Form] Add better type information using PHPDoc (azjezz)"
This reverts commit 615b0e972a52935a853b14881954aef3ecf5ef82, reversing
changes made to 4f4a40aab22068f76b39e90181de203c869a95f3.
2025-09-18 13:45:49 +02:00
Nicolas Grekas
5fa2060e4f Merge branch '7.4' into 8.0
* 7.4:
  Fix merge
  [MonologBridge] Make `ConsoleHandler` not handle messages at SILENT verbosity
  Remove needless calls to defined()
  [Validator] Review Slovak translations
  [VarDumper] Select HtmlDumper only if `Accept` header contains "html"
  restore translation source entries
  [SecurityBundle] Add missing `fixXmlConfig()` call for `issuer`
  [Validator] Review Romanian translations
  chore(config): add better type information using phpdoc
  chore(form): add better type information using phpdoc
  chore(finder): add better type information using phpdoc
  [Console] Don’t append a new line to test inputs ending with an EOT
2025-09-09 16:34:23 +02:00
azjezz
acad9a3622 chore(form): add better type information using phpdoc
Signed-off-by: azjezz <azjezz@protonmail.com>
2025-09-09 08:28:44 +01:00
Nicolas Grekas
254eeeade7 Enforce return types on all components 2025-06-05 11:05:15 +02:00
Jules Pietri
e3042b6844 [Form][DX] Use logical ordering for type and extension methods 2023-08-02 16:02:08 +02:00
Wouter de Jong
cb76849c06 Add missing return types 2023-04-28 18:05:33 +02:00
Wouter de Jong
f94d6c607d Add void return types 2023-02-13 14:18:23 +01:00
Grégoire Pineau
7dddf80606 [CS] Remove @inheritdoc PHPDoc 2022-08-25 17:27:04 +02:00
Samuele Lilli
c3cf86e111 Switched from parent type hard-coded FQCN to ::class keyword. 2021-01-08 13:59:24 +01:00
Fabien Potencier
cb40097070 Fix CS 2020-02-04 09:04:52 +01:00
Christian Flothmann
78a54414b0 [Form] fix some docblocks and type checks 2019-01-30 09:09:50 +01:00
Nicolas Grekas
f5033153e3 Merge branch '2.8' into 3.4
* 2.8:
  Fix Clidumper tests
  Enable the fixer enforcing fully-qualified calls for compiler-optimized functions
  Apply fixers
  Disable the native_constant_invocation fixer until it can be scoped
  Update the list of excluded files for the CS fixer
2018-07-26 10:45:46 +02:00
Christophe Coevoet
15579a6424 Enable the fixer enforcing fully-qualified calls for compiler-optimized functions 2018-07-24 12:05:38 +02:00
Fabien Potencier
fd24c42112 Merge branch '2.7' into 2.8
* 2.7:
  removed dots at the end of @param and @return
  fixed typo
2016-06-29 07:29:29 +02:00
Fabien Potencier
19154a6317 removed dots at the end of @param and @return 2016-06-28 08:24:06 +02:00
WouterJ
5d5607500c Added getBlockPrefix to FormTypeInterface 2015-11-28 12:15:28 +01:00
Fabien Potencier
08f76324a8 [Form] removed deprecated FormType::getName() 2015-10-01 16:20:48 +02:00
Nicolas Grekas
51df867c4c Merge branch '2.8'
* 2.8:
  [Locale] Add missing @group legacy annotations
  [Form] Add missing @group legacy annotations
  [Form] Use FQCN form types
  Fix security-acl deps
  Fix typo
  [Security] Removed security-acl from the core
  fixed typos
  Fix doctrine mapping validation type error
  Remove skipping of tests based on ICU data version whenever possible
  Fix the handling of null as locale in the stub intl classes
  do not dump leading backslashes in class names
  fix issue #15377
  Skip ::class constant
  [Config] type specific check for emptiness
  [Form] Deprecated FormTypeInterface::getName() and passing of type instances

Conflicts:
	UPGRADE-2.8.md
	composer.json
	src/Symfony/Bridge/Doctrine/composer.json
	src/Symfony/Bridge/Twig/composer.json
	src/Symfony/Bundle/SecurityBundle/composer.json
	src/Symfony/Component/ClassLoader/ClassMapGenerator.php
	src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php
	src/Symfony/Component/Form/Tests/AbstractExtensionTest.php
	src/Symfony/Component/Form/Tests/AbstractLayoutTest.php
	src/Symfony/Component/Form/Tests/SimpleFormTest.php
	src/Symfony/Component/Locale/Tests/LocaleTest.php
	src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php
	src/Symfony/Component/Security/Acl/README.md
	src/Symfony/Component/Security/Acl/composer.json
2015-08-01 12:05:47 +02:00
Fabien Potencier
8bd2c71f8d fixed typos 2015-08-01 08:45:26 +02:00
Bernhard Schussek
3b14634489 [Form] Deprecated FormTypeInterface::getName() and passing of type instances 2015-07-02 10:02:46 +02:00
Fabien Potencier
ede016fd53 fixed CS 2015-06-11 21:09:58 +02:00
Javier Spagnoletti
dc57bbda09 [2.7] Improved exception message if custom implementation of ``OptionsResolverInterface`` is used
| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Improved exception message if custom implementation of ```OptionsResolverInterface```
is used within ```AbstractType::setDefaultOptions()``` or ```AbstractTypeExtension::setDefaultOptions()```.

Before:
```
Argument 1 passed to Symfony\Component\Form\AbstractType::configureOptions() must be an instance of Symfony\Component\OptionsResolver\OptionsResolver, instance of Symfony\Component\Form\Tests\Fixtures\CustomOptionsResolver given
```

After:
```
Argument 1 passed to Symfony\Component\Form\AbstractType::setDefaultOptions() must be an instance of Symfony\Component\OptionsResolver\OptionsResolver, instance of Symfony\Component\Form\Tests\Fixtures\CustomOptionsResolver given
```
2015-06-11 15:21:12 -03:00
Peter Rehm
e12d8d6389 Removed deprecated setDefaultOptions methods 2015-01-20 07:08:27 +01:00
Peter Rehm
a7346ebe49 Deprecated setDefaultOptions() in favor of configureOptions() 2015-01-16 10:30:42 +01:00
Fabien Potencier
6799dcd6f5 [Form] removed deprecated methods and classes 2013-03-23 11:48:19 +01:00
Christophe Coevoet
5412a4e398 Enhanced the triggering of E_USER_DEPRECATED errors
- Removed useless error handlers around FormEvent as the triggering has
  been fixed in it.
- Enhanced the triggering of deprecation errors for places where the BC
  method provide some user logic needing to be converted to a new way.
- Enhanced the deprecation messages to mention the replacement whenever
  possible.
2013-01-10 09:22:55 +01:00
Colin Frei
93152e5865 Move DeprecationErrorHandler to Test folder so it's not removed when building the zip file 2012-12-16 10:51:52 +01:00
Colin Frei
58d0921c42 [Form] Catch deprecation errors that are caused by BC code 2012-12-14 23:16:49 +01:00
Colin Frei
1041edfdf2 [Form] Trigger errors for deprecated methods in Form Component 2012-12-12 17:43:13 +01:00
Thomas Lallement
9b7094af4d CS Fixes - Replaced "array of type" by "Type[]" in PHPDoc block 2012-11-19 13:58:52 +01:00
Mario A. Alvarez Garcia
bc4938fb23 Code cleanup 2012-10-22 10:37:12 -04:00
Bernhard Schussek
e056c857a5 [Form] Restored BC in AbstractType::getDefaultOptions() and getAllowedOptionValues() 2012-07-22 09:36:58 +02:00
Bernhard Schussek
84c9dfdab4 [Form] The properties of FormView are now accessed directly in order to increase performance (PHP +200ms, Twig +150ms) 2012-07-21 12:56:11 +02:00
Bernhard Schussek
3bcb64f5c5 [Form] Cached the form type hierarchy in order to improve performance 2012-07-13 20:39:30 +02:00
Bernhard Schussek
05203e05d5 [Form] setDefaultOptions() is now coded against OptionsResolverInterface 2012-05-25 12:34:16 +02:00
Bernhard Schussek
5cc469d4ac [Form] Added FormBuilderInterface and FormViewInterface and cleaned up FormTypeInterface and FormTypeExtensionInterface 2012-05-25 12:28:17 +02:00
Bernhard Schussek
94b15eacff [Form] Options are now passed to buildView() and buildViewBottomUp() 2012-05-25 12:28:17 +02:00
Bernhard Schussek
f3d83a1f68 [Form] Changed getDefaultOptions() to setDefaultOptions(OptionsResolver $resolver) in FormTypeInterface 2012-05-25 12:28:17 +02:00
Tobias Schultze
fae4396a8a [Form] fix PhpDoc 2012-05-21 04:26:59 +02:00
Fabien Potencier
e5dde8cc08 fixed phpdoc @param alignment 2012-05-15 22:19:31 +02:00
William DURAND
4ffa08cf35 [Form] Fixed documentation, and the DateType (default options) 2012-04-11 17:26:46 +02:00
Bernhard Schussek
3fa45d3a3e [Form] Fixed option support in Form component 2012-04-11 16:37:42 +02:00
Pierre-Yves LEBECQ
fdf28c3eac [Form] Fixed a typo in AbstractType phpdoc 2011-08-13 13:43:13 +02:00
Christophe Coevoet
9011edb0bc Removed the magical guessing of the type name to avoid WTF issues 2011-07-06 14:20:59 +02:00
Fabien Potencier
5ce0e0120b Revert "[Form] changed the way default type names are created to avoid collisions"
This reverts commit d044498cdedea20c9e9a2e36a84e99577b2a26b3.

The reason for reverting is that the name is actually used to customize
the template on a per field basis:

{% block _post_excerpt_widget %}
    ***{{ block('text_widget') }}***
{% endblock %}

Here, post is the name of the Type.
2011-06-13 11:47:21 +02:00
Fabien Potencier
0845a1ab79 [Form] changed the way default type names are created to avoid collisions 2011-06-09 16:43:02 +02:00
Victor Berchet
c4fffc4658 Merge branch 'master' into form-phpdoc-2 2011-05-15 19:24:09 +02:00
Bernhard Schussek
8c304fd36c [Form] Added FormTypeInterface::getAllowedOptionValues() to better validate passed options 2011-05-13 18:44:03 +02:00