Skip to content

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Boes <[email protected]>
  • Loading branch information
Treggats and RobertBoes committed Jun 12, 2024
1 parent cf65a3c commit f53be87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Rules/NoDebugInBlade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function processNode(Node $node, Scope $scope): array
$text = array_map(static fn (InlineHTML $node): string => $node->value, $node->getNodes());
if (self::hasDisallowedStatements(...$text)) {
return [
RuleErrorBuilder::message('No debug statements should be present in blade files.')->build(),
RuleErrorBuilder::message('No debug directives should be present in blade files.')->build(),
];
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Rules/NoDebugInBladeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function no_debug_statements_should_be_present_in_blade(): void
{
$this->analyse([__DIR__ . '/stubs/debug-in-view.blade.php'], [
[
'No debug statements should be present in blade files.',
'No debug directives should be present in blade files.',
1,
],
]);
Expand Down

0 comments on commit f53be87

Please sign in to comment.