Skip to content

Commit 180e3b7

Browse files
committed
do not use DIRECTORY_SEPARATOR in error messages
Fixes #406
1 parent 59633d4 commit 180e3b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Rules/Drupal/LoadIncludes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function processNode(Node $node, Scope $scope): array
7070
return [
7171
RuleErrorBuilder::message(sprintf(
7272
'File %s could not be loaded from %s::loadInclude',
73-
$module->getPath() . DIRECTORY_SEPARATOR . $filename,
73+
$module->getPath() . '/' . $filename,
7474
ModuleHandlerInterface::class
7575
))
7676
->line($node->getLine())

src/Rules/Drupal/ModuleLoadInclude.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function processNode(Node $node, Scope $scope): array
5858
return [
5959
RuleErrorBuilder::message(sprintf(
6060
'File %s could not be loaded from module_load_include.',
61-
$module->getPath() . DIRECTORY_SEPARATOR . $filename
61+
$module->getPath() . '/' . $filename
6262
))
6363
->line($node->getLine())
6464
->build()

0 commit comments

Comments
 (0)