Skip to content

Conversation

@vudaltsov
Copy link
Contributor

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
License MIT

I consider this to be a bugfix in config, because ClassInstanceSupportStrategy (InstanceOfSupportStrategy) actually works with interfaces. Therefore propose to 3.4.

->validate()
->ifTrue(function ($v) { return !class_exists($v); })
->ifTrue(function ($v) { return !class_exists($v) && !interface_exists($v); })
->thenInvalid('The supported class %s does not exist.')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The supported class or interface %s does not exist.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lyrixx , thanx, fixed

@fabpot
Copy link
Member

fabpot commented Jun 15, 2018

Thank you @vudaltsov.

@fabpot fabpot merged commit 6104c28 into symfony:3.4 Jun 15, 2018
fabpot added a commit that referenced this pull request Jun 15, 2018
…sov)

This PR was squashed before being merged into the 3.4 branch (closes #27596).

Discussion
----------

[Framework][Workflow] Added support for interfaces

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

I consider this to be a bugfix in config, because `ClassInstanceSupportStrategy` (`InstanceOfSupportStrategy`) actually works with interfaces. Therefore propose to 3.4.

Commits
-------

6104c28 [Framework][Workflow] Added support for interfaces
@vudaltsov vudaltsov deleted the patch-2 branch June 15, 2018 13:22
This was referenced Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants