Skip to content

Commit

Permalink
Remove loggers and specify use of middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
eigan committed Sep 7, 2023
1 parent 907b432 commit 70f4b08
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 520 deletions.
5 changes: 4 additions & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@ Logging moved to the new middlewares section.
],
```

### Classes and interface in `LaravelDoctrine\ORM\Loggers` removed
Use new "middleware" logic, see above.

### Clockwork logger removed
Out of scope for this package.

### Laravel debugbar logger removed
Laravel debugbar does not support the new Middleware to Doctrine. Open for PR to re-add this functionality.
Laravel debugbar does not support the new Middleware to Doctrine. Open for PR to re-add this functionality.
60 changes: 0 additions & 60 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -1113,66 +1113,6 @@ parameters:
count: 1
path: src/IlluminateRegistry.php

-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\FormatQueryKeywords\\:\\:format\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
count: 1
path: src/Loggers/Formatters/FormatQueryKeywords.php

-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\FormatQueryKeywords\\:\\:format\\(\\) has parameter \\$types with no value type specified in iterable type array\\.$#"
count: 1
path: src/Loggers/Formatters/FormatQueryKeywords.php

-
message: "#^PHPDoc tag @param has invalid value \\(AbstractPlatform\\)\\: Unexpected token \"\\\\n \\* \", expected variable at offset 34$#"
count: 1
path: src/Loggers/Formatters/FormatQueryKeywords.php

-
message: "#^Property LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\FormatQueryKeywords\\:\\:\\$keywords type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Loggers/Formatters/FormatQueryKeywords.php

-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\QueryFormatter\\:\\:format\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
count: 1
path: src/Loggers/Formatters/QueryFormatter.php

-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\QueryFormatter\\:\\:format\\(\\) has parameter \\$types with no value type specified in iterable type array\\.$#"
count: 1
path: src/Loggers/Formatters/QueryFormatter.php

-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\ReplaceQueryParams\\:\\:convertParam\\(\\) has parameter \\$platform with no type specified\\.$#"
count: 1
path: src/Loggers/Formatters/ReplaceQueryParams.php

-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\ReplaceQueryParams\\:\\:convertParam\\(\\) has parameter \\$type with no type specified\\.$#"
count: 1
path: src/Loggers/Formatters/ReplaceQueryParams.php

-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\ReplaceQueryParams\\:\\:format\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
count: 1
path: src/Loggers/Formatters/ReplaceQueryParams.php

-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\ReplaceQueryParams\\:\\:format\\(\\) has parameter \\$types with no value type specified in iterable type array\\.$#"
count: 1
path: src/Loggers/Formatters/ReplaceQueryParams.php

-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\ReplaceQueryParams\\:\\:isNestedArray\\(\\) has parameter \\$array with no value type specified in iterable type array\\.$#"
count: 1
path: src/Loggers/Formatters/ReplaceQueryParams.php

-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Logger\\:\\:register\\(\\) has no return type specified\\.$#"
count: 1
path: src/Loggers/Logger.php

-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Middleware\\\\SubstituteBindings\\:\\:substituteImplicitBindings\\(\\) has no return type specified\\.$#"
count: 1
Expand Down
64 changes: 0 additions & 64 deletions src/Loggers/Formatters/FormatQueryKeywords.php

This file was deleted.

18 changes: 0 additions & 18 deletions src/Loggers/Formatters/QueryFormatter.php

This file was deleted.

95 changes: 0 additions & 95 deletions src/Loggers/Formatters/ReplaceQueryParams.php

This file was deleted.

15 changes: 0 additions & 15 deletions src/Loggers/Logger.php

This file was deleted.

86 changes: 0 additions & 86 deletions tests/Loggers/Formatters/FormatQueryKeywordsTest.php

This file was deleted.

Loading

0 comments on commit 70f4b08

Please sign in to comment.