We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afe9c66 commit 505d72eCopy full SHA for 505d72e
2 files changed
src/Command/MakeValidatorCommand.php
@@ -631,11 +631,12 @@ private function resolveTargetByPluginOrPath(
631
$expected = $pluginDefaultPathResolver($plugin);
632
}
633
634
- if ($expected && $pathNorm) {
635
- if (!$this->pathsEqual($expected, $pathNorm)) {
+ if ($plugin && $pathNorm) {
+ $pluginPrefix = 'plugin/' . $plugin . '/';
636
+ if (!str_starts_with(strtolower($pathNorm), strtolower($pluginPrefix))) {
637
$output->writeln($msg('plugin_path_conflict', [
- '{expected}' => $expected,
638
- '{actual}' => $pathNorm,
+ '{plugin}' => $plugin,
639
+ '{path}' => $pathNorm,
640
]));
641
return null;
642
0 commit comments