Skip to content

Commit

Permalink
[BUGFIX] Fix warning about constant modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf committed Nov 28, 2023
1 parent 6946efc commit 9c17a42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Directives/Php/ConstDirective.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected function processSub(

foreach ($this->illegalCombinations as $combination) {
if ($directive->hasOption($combination[0]) && $directive->hasOption($combination[1])) {
$this->logger->warning(sprintf('A PHP method cannot be %s and %s at the same time.', $combination[0], $combination[1]), $blockContext->getDocumentParserContext()->getLoggerInformation());
$this->logger->warning(sprintf('A PHP constant cannot be %s and %s at the same time.', $combination[0], $combination[1]), $blockContext->getDocumentParserContext()->getLoggerInformation());
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
app.WARNING: A PHP method cannot be private and public at the same time. {"rst-file":"index.rst"} []
app.WARNING: A PHP method cannot be protected and public at the same time. {"rst-file":"index.rst"} []
app.WARNING: A PHP method cannot be private and protected at the same time. {"rst-file":"index.rst"} []
app.WARNING: A PHP constant cannot be private and public at the same time. {"rst-file":"index.rst"} []
app.WARNING: A PHP constant cannot be protected and public at the same time. {"rst-file":"index.rst"} []
app.WARNING: A PHP constant cannot be private and protected at the same time. {"rst-file":"index.rst"} []

0 comments on commit 9c17a42

Please sign in to comment.