Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6c341c3

Browse filesBrowse files
committed
Merge branch '7.2' into 7.3
* 7.2: use ? before nullable single type declaration [Twig] [Twig Reference] fix path parameter and add example in asset v… Update serializer.rst
2 parents 88298ed + 53ea654 commit 6c341c3
Copy full SHA for 6c341c3

File tree

2 files changed

+4
-2
lines changed
Filter options

2 files changed

+4
-2
lines changed

‎reference/twig_reference.rst

Copy file name to clipboardExpand all lines: reference/twig_reference.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,10 @@ asset_version
130130

131131
.. code-block:: twig
132132
133-
{{ asset_version(packageName = null) }}
133+
{{ asset_version(path, packageName = null) }}
134134
135+
``path``
136+
**type**: ``string``
135137
``packageName`` *(optional)*
136138
**type**: ``string`` | ``null`` **default**: ``null``
137139

‎serializer.rst

Copy file name to clipboardExpand all lines: serializer.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1774,7 +1774,7 @@ identifier of the next nested object, instead of omitting the property::
17741774
$child = new Person('Joe', $mother);
17751775

17761776
// all callback parameters are optional (you can omit the ones you don't use)
1777-
$maxDepthHandler = function (object $innerObject, object $outerObject, string $attributeName, ?string $format = null, array $context = []): string {
1777+
$maxDepthHandler = function (object $innerObject, object $outerObject, string $attributeName, ?string $format = null, array $context = []): ?string {
17781778
// return only the name of the next person in the tree
17791779
return $innerObject instanceof Person ? $innerObject->getName() : null;
17801780
};

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.