You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message:'#^Class CodedMonkey\\Dirigent\\Doctrine\\Entity\\TrackedEntity has an uninitialized readonly property \$createdAt\. Assign it in the constructor\.$#'
23
+
identifier:property.uninitializedReadonly
24
+
count:1
25
+
path:src/Doctrine/Entity/TrackedEntity.php
26
+
-
27
+
message:'#^Readonly property CodedMonkey\\Dirigent\\Doctrine\\Entity\\TrackedEntity\:\:\$createdAt is assigned outside of the constructor\.$#'
Copy file name to clipboardExpand all lines: src/Controller/ApiController.php
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -145,12 +145,9 @@ public function trackInstallations(Request $request): Response
145
145
returnnewJsonResponse(['status' => 'error', 'message' => 'Invalid request format, must be a json object containing a downloads key filled with an array of name/version objects'], 200);
146
146
}
147
147
148
-
$message = newTrackInstallations($contents['downloads'], new \DateTime());
149
-
$envelope = newEnvelope($message, [
150
-
newTransportNamesStamp('async'),
151
-
]);
152
-
153
-
$this->messenger->dispatch($envelope);
148
+
$message = Envelope::wrap(newTrackInstallations($contents['downloads'], new \DateTimeImmutable()))
0 commit comments