-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Improve warnings to contain line numbers. (#29)
This was previously not possible due to a bug in the directive
- Loading branch information
Showing
12 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
tests/integration/class-with-const-illegal-modifier-combinations/expected/logs/warning.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
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"} [] | ||
app.WARNING: A PHP constant cannot be private and public at the same time. {"rst-file":"index.rst","currentLineNumber":9} [] | ||
app.WARNING: A PHP constant cannot be protected and public at the same time. {"rst-file":"index.rst","currentLineNumber":16} [] | ||
app.WARNING: A PHP constant cannot be private and protected at the same time. {"rst-file":"index.rst","currentLineNumber":22} [] |
2 changes: 1 addition & 1 deletion
2
tests/integration/class-with-staticmethod/expected/logs/warning.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
app.WARNING: Directive `.. php:staticmethod::` is deprecated use directive `.. php:method::` with option `:static:` instead. {"rst-file":"index.rst"} [] | ||
app.WARNING: Directive `.. php:staticmethod::` is deprecated use directive `.. php:method::` with option `:static:` instead. {"rst-file":"index.rst","currentLineNumber":5} [] |
6 changes: 3 additions & 3 deletions
6
tests/integration/enum-with-warnings/expected/logs/warning.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
app.WARNING: Passing the type of a backed enum directly with the name is deprecated. Use option :type: instead. {"rst-file":"index.rst"} [] | ||
app.WARNING: The type of the backed enum was set twice. The type from the option will be prefered. {"rst-file":"index.rst"} [] | ||
app.WARNING: Passing the type of a backed enum directly with the name is deprecated. Use option :type: instead. {"rst-file":"index.rst"} [] | ||
app.WARNING: Passing the type of a backed enum directly with the name is deprecated. Use option :type: instead. {"rst-file":"index.rst","currentLineNumber":21} [] | ||
app.WARNING: The type of the backed enum was set twice. The type from the option will be prefered. {"rst-file":"index.rst","currentLineNumber":21} [] | ||
app.WARNING: Passing the type of a backed enum directly with the name is deprecated. Use option :type: instead. {"rst-file":"index.rst","currentLineNumber":30} [] |
10 changes: 5 additions & 5 deletions
10
tests/integration/method-illegal-combinations/expected/logs/warning.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
app.WARNING: A PHP method cannot be final and abstract 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 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 method cannot be private and abstract at the same time. {"rst-file":"index.rst"} [] | ||
app.WARNING: A PHP method cannot be final and abstract at the same time. {"rst-file":"index.rst","currentLineNumber":10} [] | ||
app.WARNING: A PHP method cannot be protected and public at the same time. {"rst-file":"index.rst","currentLineNumber":16} [] | ||
app.WARNING: A PHP method cannot be private and public at the same time. {"rst-file":"index.rst","currentLineNumber":22} [] | ||
app.WARNING: A PHP method cannot be private and protected at the same time. {"rst-file":"index.rst","currentLineNumber":28} [] | ||
app.WARNING: A PHP method cannot be private and abstract at the same time. {"rst-file":"index.rst","currentLineNumber":33} [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
app.WARNING: Directive `.. php:staticmethod::` is deprecated use directive `.. php:method::` with option `:static:` instead. {"rst-file":"index.rst"} [] | ||
app.WARNING: Directive `.. php:staticmethod::` is deprecated use directive `.. php:method::` with option `:static:` instead. {"rst-file":"index.rst","currentLineNumber":7} [] |