44 Commits

Author SHA1 Message Date
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
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
1c1dce12b4 Merge branch '5.4' into 6.0
* 5.4:
  [Serializer] cs fix
  Cleanup more `@return` annotations
  [Form] Fix phpdoc on FormBuilderInterface
2021-08-17 17:35:52 +02:00
Nicolas Grekas
be4ba59ae2 Cleanup more @return annotations 2021-08-17 16:20:01 +02:00
Nicolas Grekas
00aeda6dd3 Add return types - batch 6/n 2021-08-16 17:45:02 +02:00
Nicolas Grekas
be6c6ca17a Merge branch '5.4' into 6.0
* 5.4:
  More return type fixes (bis)
  Cleanup `@return` annotations
2021-08-12 16:08:08 +02:00
Nicolas Grekas
66ffec0f96 Cleanup @return annotations 2021-08-12 11:55:17 +02:00
Nicolas Grekas
c3d0fd33ed [Form] add union types 2021-07-07 15:31:34 +02:00
Nicolas Grekas
b59c0405c2 Merge branch '5.4' into 6.0
* 5.4: (21 commits)
  Backport type fixes
  [Messenger] Added StopWorkerException
  [Workflown] Add support for getting updated context after a transition
  Fix CS
  fix annot
  Backport type fixes
  Fix CS
  Avoid triggering the autoloader in Deprecation::isLegacy()
  fix markdown markup
  Backport type fixes
  [TwigBundle] Improve comment on error silencing
  [SecurityBundle] Fix wrongly inverted condition
  [Notifier] Add MessageMedia Bridge
  uzb translation
  [DependencyInjection] Fix doc blocks
  [DependencyInjection] Turn $defaultDeprecationTemplate into a constant
  [SecurityBundle] Hide Security item if no firewall matched
  [GHA] restore phpunit-bridge job
  rethrow caught exception
  [Form] better form doc types to support static analysis
  ...
2021-07-03 11:26:52 +02:00
Nicolas Grekas
4067e47aef Merge branch '4.4' into 5.2
* 4.4:
  Backport type fixes
  uzb translation
  [DependencyInjection] Fix doc blocks
  [DependencyInjection] Turn $defaultDeprecationTemplate into a constant
  [Form] better form doc types to support static analysis
2021-07-02 17:14:39 +02:00
Tobias Schultze
6116bbcf35 [Form] better form doc types to support static analysis 2021-06-26 20:26:23 +02:00
Yonel Ceruto
58fd160d10 [Form] Remove deprecated code 2021-05-31 18:28:22 +02:00
Thomas Calvet
208547466f [Form] Add "is empty callback" to form config 2020-02-03 18:27:57 +01:00
Valentin
c46149559a [Form] Add parameter type declarations 2019-08-13 09:00:05 +02:00
Jules Pietri
8dad268261 [Form] various minor fixes 2019-04-06 15:44:06 +02:00
Gabriel Caruso
24fb2411c9 [CS] Enforces null type hint on last position in phpDocs 2018-10-02 00:12:00 -03:00
Christian Flothmann
0b4888652a fix data mapper return type in docblock 2018-08-19 18:51:04 +02:00
Martin Hasoň
ff061180b3 [Form] Fix phpdoc 2017-09-19 13:52:15 +02:00
Dariusz
8e7d8f3d3e [CS] Apply phpdoc_annotation_without_dot 2017-09-11 13:37:52 -07:00
Fabien Potencier
19154a6317 removed dots at the end of @param and @return 2016-06-28 08:24:06 +02:00
Joseph Bielawski
36457711c8 [2.3][Form] Cleanup & fix phpdocs 2014-07-09 12:39:32 +02:00
Fabien Potencier
5e2a4b3102 fixed types in phpdocs 2014-04-16 12:30:19 +02:00
Bernhard Schussek
e77c41ecef [Form] *_SET_DATA events are now guaranteed to be fired *after* the initial children were added 2013-04-29 17:31:30 +02:00
Bernhard Schussek
6817576c80 [Form] Deprecated bind() and isBound() in favor of submit() and isSubmitted() 2013-04-20 18:05:58 +02:00
Bernhard Schussek
9f8f667a4c [Form] Renamed form processors to request handlers 2013-04-20 17:36:19 +02:00
Bernhard Schussek
bf39e58c43 [Form] Renamed option "virtual" to "inherit_data" 2013-04-19 10:09:37 +02:00
Bernhard Schussek
26a3f332f6 [Form] Implemented form processors 2013-04-18 11:02:51 +02:00
Fabien Potencier
6799dcd6f5 [Form] removed deprecated methods and classes 2013-03-23 11:48:19 +01:00
Bernhard Schussek
831306bdfa [PropertyAccess] Extracted PropertyAccess component out of Form 2013-01-10 09:49:37 +01:00
Bernhard Schussek
7c372e089f [Form] Added an alternative signature Form::add($name, $type, $options) 2012-12-18 11:29:26 +01:00
Thomas Lallement
9b7094af4d CS Fixes - Replaced "array of type" by "Type[]" in PHPDoc block 2012-11-19 13:58:52 +01:00
Tobias Schultze
5cc6b24736 [Form] fixed and added phpDoc 2012-08-27 18:33:43 +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
5a3893621b [Form] Fixed the "data" option to supersede default data set in the model 2012-07-09 21:04:24 +02:00
Fabien Potencier
57d3b508c1 fixed CS 2012-07-09 14:54:20 +02:00
Bernhard Schussek
2d36b84494 [Form] Fixed: Empty forms can be compound too 2012-07-03 19:10:17 +02:00
Victor Berchet
0d062aceec [Form] cleanup 2012-05-28 08:48:06 +02:00
Bernhard Schussek
adc9c6dd72 [Form] Renamed client and application format to view and model format 2012-05-25 12:34:16 +02:00
Bernhard Schussek
94b15eacff [Form] Options are now passed to buildView() and buildViewBottomUp() 2012-05-25 12:28:17 +02:00
Bernhard Schussek
a588b80053 [Form] Added accessor FormConfigInterface::getByReference() and let Form clone objects if not by reference 2012-05-23 14:51:26 +02:00
Bernhard Schussek
335042a880 [Form] Fixed: errors are not mapped to unsynchronized forms anymore 2012-05-22 09:30:21 +02:00
Bernhard Schussek
3bc32dae5f [Form] Fixed issues mentioned in the PR comments 2012-05-22 09:30:21 +02:00
Bernhard Schussek
b8559f6b30 [Form] Adapted Form to create a deterministic property path by default 2012-05-22 09:29:53 +02:00
Bernhard Schussek
0ebf62f435 [Form] Extracted FormConfig class to simplify the Form's constructor 2012-05-22 09:28:15 +02:00