Skip to content

Commit 270c2ee

Browse files
committed
Update Process.stub
1 parent f7d5782 commit 270c2ee

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

extension.neon

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ parameters:
6666
- stubs/Symfony/Component/Messenger/Envelope.stub
6767
- stubs/Symfony/Component/OptionsResolver/Exception/InvalidOptionsException.stub
6868
- stubs/Symfony/Component/OptionsResolver/Options.stub
69+
- stubs/Symfony/Component/Process/Exception/LogicException.stub
6970
- stubs/Symfony/Component/Process/Process.stub
7071
- stubs/Symfony/Component/PropertyAccess/Exception/AccessException.stub
7172
- stubs/Symfony/Component/PropertyAccess/Exception/ExceptionInterface.stub
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Symfony\Component\Process\Exception;
4+
5+
class LogicException extends \Exception
6+
{
7+
8+
}

stubs/Symfony/Component/Process/Process.stub

+15
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,25 @@
22

33
namespace Symfony\Component\Process;
44

5+
use Symfony\Component\Process\Exception\LogicException;
6+
57
/**
68
* @implements \IteratorAggregate<string, string>
79
*/
810
class Process implements \IteratorAggregate
911
{
1012

13+
/**
14+
* @param int $flags
15+
*
16+
* @return \Generator<string, string, mixed, mixed>
17+
*
18+
* @throws LogicException in case the output has been disabled
19+
* @throws LogicException In case the process is not started
20+
*/
21+
public function getIterator(int $flags = 0): \Generator
22+
{
23+
24+
}
25+
1126
}

0 commit comments

Comments
 (0)