Skip to content

Commit e9137e0

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: Correct time type return Fix a typo Reword add tip about listener priority to mailer.rst
2 parents 0a258db + 4d24ada commit e9137e0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

components/phpunit_bridge.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ is mocked so it uses the mocked time if no timestamp is specified.
540540
Other functions with an optional timestamp parameter that defaults to ``time()``
541541
will still use the system time instead of the mocked time. This means that you
542542
may need to change some code in your tests. For example, instead of ``new DateTime()``,
543-
you should use ``DateTime::createFromFormat('U', time())`` to use the mocked
543+
you should use ``DateTime::createFromFormat('U', (string) time())`` to use the mocked
544544
``time()`` function.
545545

546546
To use the ``ClockMock`` class in your test, add the ``@group time-sensitive``

mailer.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,8 @@ This makes use of the :ref:`styles Twig namespace <mailer-css-namespace>` we cre
936936
earlier. You could, for example, `download the foundation-emails.css file`_
937937
directly from GitHub and save it in ``assets/styles``.
938938

939+
.. _signing-and-encrypting-messages:
940+
939941
Signing and Encrypting Messages
940942
-------------------------------
941943

@@ -1389,6 +1391,13 @@ is sent::
13891391
}
13901392
}
13911393

1394+
.. tip::
1395+
1396+
When using a ``MessageEvent`` listener to
1397+
:doc:`sign the email contents <signing-and-encrypting-messages>`, run it as
1398+
late as possible (e.g. setting a negative priority for it) so the email
1399+
contents are not set or modified after signing them.
1400+
13921401
Development & Debugging
13931402
-----------------------
13941403

0 commit comments

Comments
 (0)