Skip to content

Commit d043474

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: ensure consistency of Symfony and standalone session code block Update Cidr.rst
2 parents 0f099f9 + 7f421ea commit d043474

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

reference/constraints/Cidr.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ It's a constraint for the lowest value a valid netmask may have.
9595
``netmaskMax``
9696
~~~~~~~~~~~~~~
9797

98-
**type**: ``string`` **default**: ``32`` for IPv4 or ``128`` for IPv6
98+
**type**: ``integer`` **default**: ``32`` for IPv4 or ``128`` for IPv6
9999

100100
It's a constraint for the biggest value a valid netmask may have.
101101

session.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,13 @@ For example, imagine you're processing a :doc:`form </forms>` submission::
168168
169169
// add flash messages
170170
$flashes->add(
171-
'warning',
172-
'Your config file is writable, it should be set read-only'
171+
'notice',
172+
'Your changes were saved'
173173
);
174-
$flashes->add('error', 'Failed to update name');
175-
$flashes->add('error', 'Another error');
176174
177-
After processing the request, the controller sets a flash message in the session
178-
and then redirects. The message key (``warning`` and ``error`` in this example) can be anything:
179-
you'll use this key to retrieve the message.
175+
After processing the request, the controller sets a flash message in the
176+
session and then redirects. The message key (``notice`` in this example)
177+
can be anything. You'll use this key to retrieve the message.
180178

181179
In the template of the next page (or even better, in your base layout template),
182180
read any flash messages from the session using the ``flashes()`` method provided

0 commit comments

Comments
 (0)