This repository has been archived by the owner on Feb 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #728 Don't skip interfaces for auto-conversion (derrabus)
This PR was merged into the 6.1.x-dev branch. Discussion ---------- Don't skip interfaces for auto-conversion This PR fixes a problem introduced by #727. Before said patch, configuring a param converter for an interface was possible. I've added a test to make sure that this use-case does not break again. In addition to that, I've simplified the code a bit. Commits ------- 8ba95d0 Don't skip interfaces for auto-conversion
- Loading branch information
Showing
3 changed files
with
50 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/EventListener/Fixture/InvokableControllerWithUnion.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Sensio\Bundle\FrameworkExtraBundle\Tests\EventListener\Fixture; | ||
|
||
final class InvokableControllerWithUnion | ||
{ | ||
public function __invoke(int | \DateTime | string $date) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters