Skip to content

Commit b3df0da

Browse files
authored
Add stub for write and writeln console methods
1 parent 5f4d20e commit b3df0da

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

extension.neon

+2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ parameters:
1212
console_application_loader: null
1313
consoleApplicationLoader: null
1414
stubFiles:
15+
- stubs/Php/Stringable.stub
1516
- stubs/Psr/Cache/CacheItemInterface.stub
1617
- stubs/Symfony/Bundle/FrameworkBundle/KernelBrowser.stub
1718
- stubs/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.stub
1819
- stubs/Symfony/Bundle/FrameworkBundle/Test/TestContainer.stub
1920
- stubs/Symfony/Component/Console/Command.stub
2021
- stubs/Symfony/Component/Console/Helper/HelperInterface.stub
22+
- stubs/Symfony/Component/Console/Output/OutputInterface.stub
2123
- stubs/Symfony/Component/Form/ChoiceList/Loader/ChoiceLoaderInterface.stub
2224
- stubs/Symfony/Component/DependencyInjection/ContainerBuilder.stub
2325
- stubs/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.stub

stubs/Php/Stringable.stub

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
interface Stringable
4+
{
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
namespace Symfony\Component\Console\Output;
4+
5+
use Stringable;
6+
7+
interface OutputInterface
8+
{
9+
public const VERBOSITY_QUIET = 16;
10+
public const VERBOSITY_NORMAL = 32;
11+
public const VERBOSITY_VERBOSE = 64;
12+
public const VERBOSITY_VERY_VERBOSE = 128;
13+
public const VERBOSITY_DEBUG = 256;
14+
15+
public const OUTPUT_NORMAL = 1;
16+
public const OUTPUT_RAW = 2;
17+
public const OUTPUT_PLAIN = 4;
18+
19+
/**
20+
* @param string|Stringable|iterable<string|Stringable> $messages
21+
* @param int-mask-of<self::VERBOSITY_*|self::OUTPUT_*> $options
22+
*/
23+
public function write($messages, bool $newline = false, int $options = 0): void;
24+
25+
/**
26+
* @param string|Stringable|iterable<string|Stringable> $messages
27+
* @param int-mask-of<self::VERBOSITY_*|self::OUTPUT_*> $options
28+
*/
29+
public function writeln($messages, int $options = 0): void;
30+
}

0 commit comments

Comments
 (0)