Skip to content

Commit 505d72e

Browse files
committed
Update
1 parent afe9c66 commit 505d72e

2 files changed

Lines changed: 19 additions & 18 deletions

File tree

src/Command/MakeValidatorCommand.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -631,11 +631,12 @@ private function resolveTargetByPluginOrPath(
631631
$expected = $pluginDefaultPathResolver($plugin);
632632
}
633633

634-
if ($expected && $pathNorm) {
635-
if (!$this->pathsEqual($expected, $pathNorm)) {
634+
if ($plugin && $pathNorm) {
635+
$pluginPrefix = 'plugin/' . $plugin . '/';
636+
if (!str_starts_with(strtolower($pathNorm), strtolower($pluginPrefix))) {
636637
$output->writeln($msg('plugin_path_conflict', [
637-
'{expected}' => $expected,
638-
'{actual}' => $pathNorm,
638+
'{plugin}' => $plugin,
639+
'{path}' => $pathNorm,
639640
]));
640641
return null;
641642
}

0 commit comments

Comments
 (0)