Skip to content

Commit 70f4b08

Browse files
committed
Remove loggers and specify use of middleware
1 parent 907b432 commit 70f4b08

File tree

8 files changed

+4
-520
lines changed

8 files changed

+4
-520
lines changed

UPGRADE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@ Logging moved to the new middlewares section.
6262
],
6363
```
6464

65+
### Classes and interface in `LaravelDoctrine\ORM\Loggers` removed
66+
Use new "middleware" logic, see above.
67+
6568
### Clockwork logger removed
6669
Out of scope for this package.
6770

6871
### Laravel debugbar logger removed
69-
Laravel debugbar does not support the new Middleware to Doctrine. Open for PR to re-add this functionality.
72+
Laravel debugbar does not support the new Middleware to Doctrine. Open for PR to re-add this functionality.

phpstan-baseline.neon

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,66 +1113,6 @@ parameters:
11131113
count: 1
11141114
path: src/IlluminateRegistry.php
11151115

1116-
-
1117-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\FormatQueryKeywords\\:\\:format\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
1118-
count: 1
1119-
path: src/Loggers/Formatters/FormatQueryKeywords.php
1120-
1121-
-
1122-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\FormatQueryKeywords\\:\\:format\\(\\) has parameter \\$types with no value type specified in iterable type array\\.$#"
1123-
count: 1
1124-
path: src/Loggers/Formatters/FormatQueryKeywords.php
1125-
1126-
-
1127-
message: "#^PHPDoc tag @param has invalid value \\(AbstractPlatform\\)\\: Unexpected token \"\\\\n \\* \", expected variable at offset 34$#"
1128-
count: 1
1129-
path: src/Loggers/Formatters/FormatQueryKeywords.php
1130-
1131-
-
1132-
message: "#^Property LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\FormatQueryKeywords\\:\\:\\$keywords type has no value type specified in iterable type array\\.$#"
1133-
count: 1
1134-
path: src/Loggers/Formatters/FormatQueryKeywords.php
1135-
1136-
-
1137-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\QueryFormatter\\:\\:format\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
1138-
count: 1
1139-
path: src/Loggers/Formatters/QueryFormatter.php
1140-
1141-
-
1142-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\QueryFormatter\\:\\:format\\(\\) has parameter \\$types with no value type specified in iterable type array\\.$#"
1143-
count: 1
1144-
path: src/Loggers/Formatters/QueryFormatter.php
1145-
1146-
-
1147-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\ReplaceQueryParams\\:\\:convertParam\\(\\) has parameter \\$platform with no type specified\\.$#"
1148-
count: 1
1149-
path: src/Loggers/Formatters/ReplaceQueryParams.php
1150-
1151-
-
1152-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\ReplaceQueryParams\\:\\:convertParam\\(\\) has parameter \\$type with no type specified\\.$#"
1153-
count: 1
1154-
path: src/Loggers/Formatters/ReplaceQueryParams.php
1155-
1156-
-
1157-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\ReplaceQueryParams\\:\\:format\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
1158-
count: 1
1159-
path: src/Loggers/Formatters/ReplaceQueryParams.php
1160-
1161-
-
1162-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\ReplaceQueryParams\\:\\:format\\(\\) has parameter \\$types with no value type specified in iterable type array\\.$#"
1163-
count: 1
1164-
path: src/Loggers/Formatters/ReplaceQueryParams.php
1165-
1166-
-
1167-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Formatters\\\\ReplaceQueryParams\\:\\:isNestedArray\\(\\) has parameter \\$array with no value type specified in iterable type array\\.$#"
1168-
count: 1
1169-
path: src/Loggers/Formatters/ReplaceQueryParams.php
1170-
1171-
-
1172-
message: "#^Method LaravelDoctrine\\\\ORM\\\\Loggers\\\\Logger\\:\\:register\\(\\) has no return type specified\\.$#"
1173-
count: 1
1174-
path: src/Loggers/Logger.php
1175-
11761116
-
11771117
message: "#^Method LaravelDoctrine\\\\ORM\\\\Middleware\\\\SubstituteBindings\\:\\:substituteImplicitBindings\\(\\) has no return type specified\\.$#"
11781118
count: 1

src/Loggers/Formatters/FormatQueryKeywords.php

Lines changed: 0 additions & 64 deletions
This file was deleted.

src/Loggers/Formatters/QueryFormatter.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/Loggers/Formatters/ReplaceQueryParams.php

Lines changed: 0 additions & 95 deletions
This file was deleted.

src/Loggers/Logger.php

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/Loggers/Formatters/FormatQueryKeywordsTest.php

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)