-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stub for AbstractController::createForm()
- Loading branch information
1 parent
ee88a01
commit 14eec8c
Showing
4 changed files
with
51 additions
and
0 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
24 changes: 24 additions & 0 deletions
24
stubs/Symfony/Bundle/FrameworkBundle/Controller/AbstractController.stub
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,24 @@ | ||
<?php | ||
|
||
namespace Symfony\Bundle\FrameworkBundle\Controller; | ||
|
||
use Symfony\Component\Form\FormInterface; | ||
use Symfony\Component\Form\FormTypeInterface; | ||
use Symfony\Contracts\Service\ServiceSubscriberInterface; | ||
|
||
abstract class AbstractController implements ServiceSubscriberInterface | ||
{ | ||
/** | ||
* @template TFormType of FormTypeInterface<TData> | ||
* @template TData | ||
* | ||
* @param class-string<TFormType> $type | ||
* @param TData $data | ||
* @param array<string, mixed> $options | ||
* | ||
* @phpstan-return ($data is null ? FormInterface<null|TData> : FormInterface<TData>) | ||
*/ | ||
protected function createForm(string $type, $data = null, array $options = []): FormInterface | ||
{ | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
stubs/Symfony/Contracts/Service/ServiceSubscriberInterface.stub
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,7 @@ | ||
<?php | ||
|
||
namespace Symfony\Contracts\Service; | ||
|
||
interface ServiceSubscriberInterface | ||
{ | ||
} |
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