This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Console
Fabien Potencier 033e7529cc bug #24951 [Console] Fixed exit code with non-integer throwable code (wouterj)
This PR was merged into the 4.1-dev branch.

Discussion
----------

[Console] Fixed exit code with non-integer throwable code

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

The exception/error code in PHP doesn't have to be an integer:

 > Returns the exception code as integer in Exception but possibly as other type in Exception descendants (for example as string in PDOException).
> http://php.net/manual/en/exception.getcode.php#refsect1-exception.getcode-returnvalues

This means that a "Return value of Symfony\Component\Console\Event\ConsoleErrorEvent::getExitCode() must be of the type integer, string returned" error is shown when e.g. an uncatched PDOException is handled by the console error event.

Commits
-------

ca86e65da4 Fixed exit code with non-integer throwable code
2017-12-11 14:26:04 -08:00
..
Command Replace more docblocks by type-hints 2017-11-07 15:45:01 +01:00
CommandLoader [Console] Add a factory command loader for standalone application with lazy-loading needs 2017-07-15 10:43:17 +02:00
DependencyInjection Replace more docblocks by type-hints 2017-11-07 15:45:01 +01:00
Descriptor Replace more docblocks by type-hints 2017-11-07 15:45:01 +01:00
Event Fixed exit code with non-integer throwable code 2017-11-13 17:01:41 +01:00
EventListener [Console] Log exit codes as debug messages instead of errors 2017-08-08 12:48:54 +02:00
Exception Replace more docblocks by type-hints 2017-11-07 15:45:01 +01:00
Formatter Replace more docblocks by type-hints 2017-11-07 15:45:01 +01:00
Helper feature #25301 [Console] Add box style table (maidmaid) 2017-12-11 13:47:21 -08:00
Input Merge branch '3.4' into 4.0 2017-11-29 14:42:03 +01:00
Logger Replace more docblocks by type-hints 2017-11-07 15:45:01 +01:00
Output Replace more docblocks by type-hints 2017-11-07 15:45:01 +01:00
Question Merge branch '3.4' 2017-11-19 20:43:46 +02:00
Resources/bin
Style Merge branch '3.4' 2017-10-24 16:16:56 +02:00
Tester [Console] add setInputs to ApplicationTest and share some code 2017-11-12 07:57:03 +01:00
Tests feature #25301 [Console] Add box style table (maidmaid) 2017-12-11 13:47:21 -08:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
Application.php Merge branch '3.4' into 4.0 2017-12-04 13:31:58 +01:00
CHANGELOG.md Merge branch '3.4' 2017-10-11 10:25:05 +02:00
composer.json updated version to 4.1 2017-11-21 18:31:29 +01:00
ConsoleEvents.php Merge branch '3.4' 2017-11-05 17:26:21 +01:00
LICENSE updated LICENSE year 2017-01-02 12:30:00 -08:00
phpunit.xml.dist Merge branch '2.7' into 2.8 2017-04-12 07:07:15 -07:00
README.md Updated all the README files 2016-03-04 08:12:06 +01:00
Terminal.php Allow terminal dimensions to be set to 0 (unbounded) 2017-04-11 16:41:42 +01:00

Console Component

The Console component eases the creation of beautiful and testable command line interfaces.

Resources

Credits

Resources/bin/hiddeninput.exe is a third party binary provided within this component. Find sources and license at https://github.com/Seldaek/hidden-input.