Skip to content

Commit 6a1f0a8

Browse files
committed
fix dispatch signal event check for compatibility with the contract interface
1 parent 0ad8230 commit 6a1f0a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ protected function doRunCommand(Command $command, InputInterface $input, OutputI
985985

986986
if ($this->signalsToDispatchEvent) {
987987
$commandSignals = $command instanceof SignalableCommandInterface ? $command->getSubscribedSignals() : [];
988-
$dispatchSignals = $this->dispatcher && $this->dispatcher->hasListeners(ConsoleEvents::SIGNAL);
988+
$dispatchSignals = null !== $this->dispatcher;
989989

990990
if ($commandSignals || $dispatchSignals) {
991991
if (!$this->signalRegistry) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy