Skip to content

Commit 94fcf68

Browse files
committed
More stubs
1 parent 2963096 commit 94fcf68

File tree

4 files changed

+63
-0
lines changed

4 files changed

+63
-0
lines changed

extension.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
parameters:
22
stubFiles:
3+
- stubs/ArrayHash.php
34
- stubs/Form.php
45
- stubs/FormContainer.php
6+
- stubs/Html.php
7+
- stubs/SessionSection.php
58
universalObjectCratesClasses:
69
- Nette\Application\UI\ITemplate
710
- Nette\Bridges\ApplicationLatte\Template

stubs/ArrayHash.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace Nette\Utils;
4+
5+
/**
6+
* @implements \IteratorAggregate<mixed, mixed>
7+
* @implements \ArrayAccess<mixed, mixed>
8+
*/
9+
class ArrayHash implements \ArrayAccess, \IteratorAggregate
10+
{
11+
12+
/**
13+
* @return \RecursiveArrayIterator<mixed>
14+
*/
15+
public function getIterator(): \RecursiveArrayIterator
16+
{
17+
// nothing
18+
}
19+
20+
}

stubs/Html.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace Nette\Utils;
4+
5+
/**
6+
* @implements \IteratorAggregate<int, self|string>
7+
* @implements \ArrayAccess<int, self|string>
8+
*/
9+
class Html implements \ArrayAccess, \IteratorAggregate
10+
{
11+
12+
/**
13+
* @return \ArrayIterator<int, self|string>
14+
*/
15+
public function getIterator(): \ArrayIterator
16+
{
17+
// nothing
18+
}
19+
20+
}

stubs/SessionSection.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace Nette\Http;
4+
5+
/**
6+
* @implements \IteratorAggregate<mixed, mixed>
7+
* @implements \ArrayAccess<mixed, mixed>
8+
*/
9+
class SessionSection implements \IteratorAggregate, \ArrayAccess
10+
{
11+
12+
/**
13+
* @return \ArrayIterator<mixed, mixed>
14+
*/
15+
public function getIterator(): \ArrayIterator
16+
{
17+
// nothing
18+
}
19+
20+
}

0 commit comments

Comments
 (0)