Closed
Description
Q | A |
---|---|
Bug report? | yes |
Feature request? | no |
BC Break report? | no |
RFC? | no |
Symfony version | 4.0.3 |
PHP 7.1.13-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Jan 5 2018 13:26:45) ( NTS )
env=prod
./bin/console c:cl
PHP Notice: Undefined variable: exitCode in vendor/symfony/console/Application.php on line 886
In ConsoleTerminateEvent.php line 27:
Type error: Argument 4 passed to Symfony\Component\Console\Event\ConsoleTerminateEvent::__construct() must be of the type integer, null given, ca
lled in vendor/symfony/console/Application.php on line 886
cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
Reproduction
run:
composer create-project symfony/skeleton demo
cd demo
composer req mailer debug
edit .env
APP_ENV=prod
edit config/packages/prod/monolog.yaml
monolog:
handlers:
mail:
type: fingers_crossed
action_level: critical
handler: deduplicated
deduplicated:
type: deduplication
handler: swift
swift:
type: swift_mailer
from_email: '%env(EMAIL_SENDER)%'
to_email: '%env(EMAIL_RECIPIENT)%'
subject: 'Error %env(ROUTER_HOST)%'
level: debug
formatter: monolog.formatter.html
content_type: text/html
run:
rm -rf var/cache/prod
./bin/console c:cl
Metadata
Metadata
Assignees
Labels
No labels