File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Symfony/Bridge/Monolog/Processor Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function __construct(RequestStack $requestStack = null)
33
33
34
34
private function doInvoke (array |LogRecord $ record ): array |
8000
LogRecord
35
35
{
36
- $ hash = $ this ->requestStack && ($ request = $ this ->requestStack ->getCurrentRequest ()) ? spl_object_hash ($ request ) : '' ;
36
+ $ hash = $ this ->requestStack && ($ request = $ this ->requestStack ->getCurrentRequest ()) ? spl_object_id ($ request ) : '' ;
37
37
38
38
$ timestamp = $ timestampRfc3339 = false ;
39
39
if ($ record ['datetime ' ] instanceof \DateTimeInterface) {
@@ -71,7 +71,7 @@ private function doInvoke(array|LogRecord $record): array|LogRecord
71
71
public function getLogs (Request $ request = null ): array
72
72
{
73
73
if (null !== $ request ) {
74
- return $ this ->records [spl_object_hash ($ request )] ?? [];
74
+ return $ this ->records [spl_object_id ($ request )] ?? [];
75
75
}
76
76
77
77
if (0 === \count ($ this ->records )) {
@@ -84,7 +84,7 @@ public function getLogs(Request $request = null): array
84
84
public function countErrors (Request $ request = null ): int
85
85
{
86
86
if (null !== $ request ) {
87
- return $ this ->errorCount [spl_object_hash ($ request )] ?? 0 ;
87
+ return $ this ->errorCount [spl_object_id ($ request )] ?? 0 ;
88
88
}
89
89
90
90
return array_sum ($ this ->errorCount );
You can’t perform that action at this time.
0 commit comments