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 c8b4dcf

Browse files
Add stubs for (some) Symfony iterable types
1 parent 8cdb0a6 commit c8b4dcf

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

‎stubs/FormBuilderInterface.php‎

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\Form;
4+
5+
/**
6+
* @extends \Traversable<int, \Symfony\Component\Form\FormBuilderInterface>
7+
*/
8+
interface FormBuilderInterface extends \Traversable
9+
{
10+
11+
}

‎stubs/FormInterface.php‎

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\Form;
4+
5+
/**
6+
* @extends \Traversable<int, \Symfony\Component\Form\FormInterface>
7+
*/
8+
interface FormInterface extends \Traversable
9+
{
10+
11+
}

‎stubs/HeaderBag.php‎

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\HttpFoundation;
4+
5+
/**
6+
* @implements \Traversable<string, string|string[]>
7+
*/
8+
class HeaderBag implements \IteratorAggregate
9+
{
10+
11+
/**
12+
* @phpstan-return \Traversable<string, string|string[]>
13+
*/
14+
public function getIterator() {}
15+
16+
}

‎stubs/Session.php‎

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\HttpFoundation\Session;
4+
5+
/**
6+
* @implements \Traversable<string, mixed>
7+
*/
8+
class Session implements \IteratorAggregate
9+
{
10+
11+
/**
12+
* @phpstan-return \Traversable<string, mixed>
13+
*/
14+
public function getIterator() {}
15+
16+
}

0 commit comments

Comments
(0)

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