Skip to content

Commit 99bd527

Browse files
committed
Load stub conditionally for messenger installations older then 8.1.0
1 parent 664835e commit 99bd527

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Stubs/Symfony/StubFilesExtensionLoader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ public function getFiles(): array
9393
$files[] = $stubsDir . '/Symfony/Component/Messenger/StampInterface.stub';
9494
}
9595

96+
if ($this->isInstalledVersionBelow('symfony/messenger', '8.1.0.0')) {
97+
$files[] = $stubsDir . '/Symfony/Component/Messenger/TraceableMessageBus.stub';
98+
}
99+
96100
if ($this->isInstalledVersionBelow('symfony/process', '5.4.0.0')) {
97101
$files[] = $stubsDir . '/Symfony/Component/Process/Exception/LogicException.stub';
98102
$files[] = $stubsDir . '/Symfony/Component/Process/Process.stub';

0 commit comments

Comments
 (0)