Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5e4b7ba

Browse files
Merge pull request #72 from dbrekelmans/master
Add a bunch of stubs
2 parents f793b68 + 1481ff3 commit 5e4b7ba

8 files changed

+111
-0
lines changed

‎extension.neon‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ parameters:
44
constant_hassers: true
55
console_application_loader: null
66
stubFiles:
7+
- stubs/ChoiceLoaderInterface.stub
8+
- stubs/Constraint.stub
9+
- stubs/ContainerBuilder.stub
10+
- stubs/EventSubscriberInterface.stub
11+
- stubs/ExtensionInterface.stub
712
- stubs/FormBuilderInterface.stub
813
- stubs/FormInterface.stub
14+
- stubs/FormTypeInterface.stub
15+
- stubs/FormView.stub
916
- stubs/HeaderBag.stub
1017
- stubs/Session.stub
1118

‎stubs/ChoiceLoaderInterface.stub‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace Symfony\Component\Form\ChoiceList\Loader;
4+
5+
interface ChoiceLoaderInterface
6+
{
7+
/**
8+
* @param array<string> $values
9+
* @param callable|null $value
10+
*
11+
* @return array<mixed>
12+
*/
13+
public function loadChoicesForValues(array $values, $value = null);
14+
15+
/**
16+
* @param array<mixed> $choices
17+
* @param callable|null $value
18+
*
19+
* @return array<string>
20+
*/
21+
public function loadValuesForChoices(array $choices, $value = null);
22+
}

‎stubs/Constraint.stub‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace Symfony\Component\Validator;
4+
5+
class Constraint
6+
{
7+
/**
8+
* @return array<mixed>
9+
*/
10+
public function getRequiredOptions();
11+
12+
/**
13+
* @return string|array<string>
14+
*/
15+
public function getTargets();
16+
}

‎stubs/ContainerBuilder.stub‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace Symfony\Component\DependencyInjection;
4+
5+
class ContainerBuilder
6+
{
7+
}

‎stubs/EventSubscriberInterface.stub‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Symfony\Component\EventDispatcher;
4+
5+
interface EventSubscriberInterface
6+
{
7+
/**
8+
* @return array<string, string|array<string, int>|array<int, string|array<string, int>|array<int, string>>>
9+
*/
10+
public static function getSubscribedEvents();
11+
}

‎stubs/ExtensionInterface.stub‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace Symfony\Component\DependencyInjection\Extension;
4+
5+
use Symfony\Component\DependencyInjection\ContainerBuilder;
6+
7+
interface ExtensionInterface
8+
{
9+
/**
10+
* @param array<mixed> $configs
11+
*/
12+
public function load(array $configs, ContainerBuilder $container): void;
13+
}

‎stubs/FormTypeInterface.stub‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace Symfony\Component\Form;
4+
5+
interface FormTypeInterface
6+
{
7+
/**
8+
* @param array<mixed> $options
9+
*/
10+
public function buildForm(FormBuilderInterface $builder, array $options): void;
11+
12+
/**
13+
* @param array<mixed> $options
14+
*/
15+
public function buildView(FormView $view, FormInterface $form, array $options): void;
16+
17+
/**
18+
* @param array<mixed> $options
19+
*/
20+
public function finishView(FormView $view, FormInterface $form, array $options): void;
21+
}

‎stubs/FormView.stub‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace Symfony\Component\Form;
4+
5+
use ArrayAccess;
6+
use IteratorAggregate;
7+
8+
/**
9+
* @implements IteratorAggregate<string, self>
10+
* @implements ArrayAccess<string, self>
11+
*/
12+
class FormView implements ArrayAccess, IteratorAggregate
13+
{
14+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /