Skip to content

Commit

Permalink
Add stub for write and writeln console methods
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffycondor authored Jul 18, 2022
1 parent 5f4d20e commit b3df0da
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ parameters:
console_application_loader: null
consoleApplicationLoader: null
stubFiles:
- stubs/Php/Stringable.stub
- stubs/Psr/Cache/CacheItemInterface.stub
- stubs/Symfony/Bundle/FrameworkBundle/KernelBrowser.stub
- stubs/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.stub
- stubs/Symfony/Bundle/FrameworkBundle/Test/TestContainer.stub
- stubs/Symfony/Component/Console/Command.stub
- stubs/Symfony/Component/Console/Helper/HelperInterface.stub
- stubs/Symfony/Component/Console/Output/OutputInterface.stub
- stubs/Symfony/Component/Form/ChoiceList/Loader/ChoiceLoaderInterface.stub
- stubs/Symfony/Component/DependencyInjection/ContainerBuilder.stub
- stubs/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.stub
Expand Down
5 changes: 5 additions & 0 deletions stubs/Php/Stringable.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

interface Stringable
{
}
30 changes: 30 additions & 0 deletions stubs/Symfony/Component/Console/Output/OutputInterface.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

namespace Symfony\Component\Console\Output;

use Stringable;

interface OutputInterface
{
public const VERBOSITY_QUIET = 16;
public const VERBOSITY_NORMAL = 32;
public const VERBOSITY_VERBOSE = 64;
public const VERBOSITY_VERY_VERBOSE = 128;
public const VERBOSITY_DEBUG = 256;

public const OUTPUT_NORMAL = 1;
public const OUTPUT_RAW = 2;
public const OUTPUT_PLAIN = 4;

/**
* @param string|Stringable|iterable<string|Stringable> $messages
* @param int-mask-of<self::VERBOSITY_*|self::OUTPUT_*> $options
*/
public function write($messages, bool $newline = false, int $options = 0): void;

/**
* @param string|Stringable|iterable<string|Stringable> $messages
* @param int-mask-of<self::VERBOSITY_*|self::OUTPUT_*> $options
*/
public function writeln($messages, int $options = 0): void;
}

0 comments on commit b3df0da

Please sign in to comment.