This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Form/Tests/Fixtures
Javier Spagnoletti aa945d355f [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
..
AbstractAuthor.php [Form] Added test case for 4759e062ed004749dbdc2ba31aef0f8ac2601895 2014-03-28 12:45:50 +01:00
AlternatingRowType.php [Form] *_SET_DATA events are now guaranteed to be fired *after* the initial children were added 2013-04-29 17:31:30 +02:00
Author.php [Form] Added delete_empty option to allow proper emptyData handling of collections 2013-12-17 12:10:53 +01:00
AuthorInterface.php [Form] Added test case for 4759e062ed004749dbdc2ba31aef0f8ac2601895 2014-03-28 12:45:50 +01:00
AuthorType.php Deprecated setDefaultOptions() in favor of configureOptions() 2015-01-16 10:30:42 +01:00
CustomArrayObject.php fixed CS 2012-05-01 15:23:48 +02:00
CustomOptionsResolver.php [2.7] Improved exception message if custom implementation of ``OptionsResolverInterface`` is used 2015-06-11 15:21:12 -03:00
FixedDataTransformer.php [WIP][Form] Improve transformation failure message by providing property path 2014-07-08 21:17:23 +02:00
FixedFilterListener.php [Form] Deprecated bind() and isBound() in favor of submit() and isSubmitted() 2013-04-20 18:05:58 +02:00
foo moved component and bridge unit tests to the src/ directory 2012-03-29 08:37:22 +02:00
foo2 [Form] NativeRequestHandler file handling fix 2015-02-25 09:33:49 +01:00
foo3 [Form] NativeRequestHandler file handling fix 2015-02-25 09:33:49 +01:00
FooSubType.php Fix phpdoc and coding standards 2014-12-29 23:41:34 +01:00
FooSubTypeWithParentInstance.php Fix phpdoc and coding standards 2014-12-29 23:41:34 +01:00
FooType.php Fix phpdoc and coding standards 2014-12-29 23:41:34 +01:00
FooTypeBarExtension.php [Form] Added FormBuilderInterface and FormViewInterface and cleaned up FormTypeInterface and FormTypeExtensionInterface 2012-05-25 12:28:17 +02:00
FooTypeBazExtension.php [Form] Added FormBuilderInterface and FormViewInterface and cleaned up FormTypeInterface and FormTypeExtensionInterface 2012-05-25 12:28:17 +02:00
TestExtension.php fixed CS (missing or misplaced license blocks) 2012-04-02 00:52:14 -03:00