File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ is mocked so it uses the mocked time if no timestamp is specified.
511
511
Other functions with an optional timestamp parameter that defaults to ``time() ``
512
512
will still use the system time instead of the mocked time. This means that you
513
513
may need to change some code in your tests. For example, instead of ``new DateTime() ``,
514
- you should use ``DateTime::createFromFormat('U', time()) `` to use the mocked
514
+ you should use ``DateTime::createFromFormat('U', (string) time()) `` to use the mocked
515
515
``time() `` function.
516
516
517
517
To use the ``ClockMock `` class in your test, add the ``@group time-sensitive ``
Original file line number Diff line number Diff line change @@ -929,6 +929,8 @@ This makes use of the :ref:`styles Twig namespace <mailer-css-namespace>` we cre
929
929
earlier. You could, for example, `download the foundation-emails.css file `_
930
930
directly from GitHub and save it in ``assets/styles ``.
931
931
932
+ .. _signing-and-encrypting-messages :
933
+
932
934
Signing and Encrypting Messages
933
935
-------------------------------
934
936
@@ -1309,6 +1311,13 @@ is sent::
1309
1311
}
1310
1312
}
1311
1313
1314
+ .. tip ::
1315
+
1316
+ When using a ``MessageEvent `` listener to
1317
+ :doc: `sign the email contents <signing-and-encrypting-messages >`, run it as
1318
+ late as possible (e.g. setting a negative priority for it) so the email
1319
+ contents are not set or modified after signing them.
1320
+
1312
1321
Development & Debugging
1313
1322
-----------------------
1314
1323
You can’t perform that action at this time.
0 commit comments