Skip to content

Commit cf525d2

Browse files
Merge branch '4.1' into 4.2
* 4.1: [Twig] Replace for-loops with blocks for attributes fixed CS [Tests] Change to willThrowException [Console] fix PHPDoc in Command Update FileLoaderLoadException.php Fix wrong calls to clearstatcache Add Vietnamese translation for validators Allow running PHPUnit with "xdebug.scream" ON [VarDumper] Add descriptors tests [Yaml] detect circular references [DI] fix reporting bindings on overriden services as unused [Routing] minor fix or previous PR
2 parents 5af798a + a54d00a commit cf525d2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Command/Command.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,9 @@ public function getNativeDefinition()
361361
* Adds an argument.
362362
*
363363
* @param string $name The argument name
364-
* @param int|null $mode The argument mode: self::REQUIRED or self::OPTIONAL
364+
* @param int|null $mode The argument mode: InputArgument::REQUIRED or InputArgument::OPTIONAL
365365
* @param string $description A description text
366-
* @param string|string[]|null $default The default value (for self::OPTIONAL mode only)
366+
* @param string|string[]|null $default The default value (for InputArgument::OPTIONAL mode only)
367367
*
368368
* @throws InvalidArgumentException When argument mode is not valid
369369
*
@@ -381,9 +381,9 @@ public function addArgument($name, $mode = null, $description = '', $default = n
381381
*
382382
* @param string $name The option name
383383
* @param string|array $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
384-
* @param int|null $mode The option mode: One of the VALUE_* constants
384+
* @param int|null $mode The option mode: One of the InputOption::VALUE_* constants
385385
* @param string $description A description text
386-
* @param string|string[]|int|bool|null $default The default value (must be null for self::VALUE_NONE)
386+
* @param string|string[]|int|bool|null $default The default value (must be null for InputOption::VALUE_NONE)
387387
*
388388
* @throws InvalidArgumentException If option mode is invalid or incompatible
389389
*

Tests/ApplicationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ public function testRunReturnsIntegerExitCode()
10031003
$application->setAutoExit(false);
10041004
$application->expects($this->once())
10051005
->method('doRun')
1006-
->will($this->throwException($exception));
1006+
->willThrowException($exception);
10071007

10081008
$exitCode = $application->run(new ArrayInput(array()), new NullOutput());
10091009

@@ -1042,7 +1042,7 @@ public function testRunReturnsExitCodeOneForExceptionCodeZero()
10421042
$application->setAutoExit(false);
10431043
$application->expects($this->once())
10441044
->method('doRun')
1045-
->will($this->throwException($exception));
1045+
->willThrowException($exception);
10461046

10471047
$exitCode = $application->run(new ArrayInput(array()), new NullOutput());
10481048

0 commit comments

Comments
 (0)