Skip to content

Commit 1c0519e

Browse files
authored
fix: used finder->exclude instead of notPath for excludedDirs (#474)
* fix: used finder->exclude instead of notPath for excludedDirs * docu: updated php comment in SymfonyProfilerController Co-authored-by: Basil Baumgartner <basil.baumgartner@ongoing.ch>
1 parent ccfd60e commit 1c0519e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Command/ExtractCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private function getConfiguredFinder(Configuration $config): Finder
143143
$finder->in($config->getDirs());
144144

145145
foreach ($config->getExcludedDirs() as $exclude) {
146-
$finder->notPath($exclude);
146+
$finder->exclude($exclude);
147147
}
148148

149149
foreach ($config->getExcludedNames() as $exclude) {

Controller/SymfonyProfilerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function editAction(Request $request, string $token): Response
7171
return new Response($content);
7272
}
7373

74-
//Assert: This is a POST request
74+
// Assert: This is a POST request
7575
$message->setTranslation((string) $request->request->get('translation'));
7676
$this->storage->update($message->convertToMessage());
7777

0 commit comments

Comments
 (0)