Skip to content

Commit 05d8eac

Browse files
committed
LibCommand: Subcommands do not inherit constraints from their parent command
2 parents a7dadf9 + 30c88c7 commit 05d8eac

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/imperazim/command/SubCommand.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ public function __construct(Command|SubCommand $parent) {
4747
foreach ($this->config['arguments'] ?? [] as $argument) {
4848
$this->addArgument($argument);
4949
}
50-
51-
// Inherit parent constraints
52-
foreach ($parent->getConstraints() as $constraint) {
53-
$this->addConstraint($constraint);
54-
}
5550
}
5651

5752
/**

0 commit comments

Comments
 (0)