Skip to content

Commit b100079

Browse files
committed
Fixing more syntax errors in 4.4
1 parent 8c38a35 commit b100079

7 files changed

+9
-12
lines changed

configuration/override_dir_structure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ option in your ``composer.json`` file like this:
230230
"config": {
231231
"bin-dir": "bin",
232232
"vendor-dir": "/some/dir/vendor"
233-
},
233+
}
234234
}
235235
236236
.. tip::

configuration/using_parameters_in_dic.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ Now, examine the results to see this closely:
8585
// true/false (depends on 2nd parameter of Kernel),
8686
// as expected, because %kernel.debug% inside configuration
8787
// gets evaluated before being passed to the extension
88-
)
89-
];
88+
]
89+
);
9090
9191
$container->loadFromExtension('my_bundle');
9292
// passes the string "%kernel.debug%".

form/create_form_type_extension.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,10 @@ Specifically, you need to override the ``file_widget`` block:
191191
{% extends 'form_div_layout.html.twig' %}
192192

193193
{% block file_widget %}
194-
{% spaceless %}
195-
196194
{{ block('form_widget') }}
197195
{% if image_url is not null %}
198196
<img src="{{ asset(image_url) }}"/>
199197
{% endif %}
200-
201-
{% endspaceless %}
202198
{% endblock %}
203199

204200
Be sure to :ref:`configure this form theme template <forms-theming-global>` so that

form/data_transformers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ to and from the issue number and the ``Issue`` object::
208208
{
209209
// no issue number? It's optional, so that's ok
210210
if (!$issueNumber) {
211-
return;
211+
return null;
212212
}
213213

214214
$issue = $this->entityManager

form/type_guesser.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ With this knowledge, you can implement the ``guessType()`` method of the
101101
$annotations = $this->readPhpDocAnnotations($class, $property);
102102

103103
if (!isset($annotations['var'])) {
104-
return; // guess nothing if the @var annotation is not available
104+
return null; // guess nothing if the @var annotation is not available
105105
}
106106

107107
// otherwise, base the type on the @var annotation

form/validation_group_service_resolver.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Then in your form, inject the resolver and set it as the ``validation_groups``::
3939
namespace App\Form;
4040

4141
use App\Validator\ValidationGroupResolver;
42-
use Symfony\Component\Form\AbstractType
42+
use Symfony\Component\Form\AbstractType;
4343
use Symfony\Component\OptionsResolver\OptionsResolver;
4444

4545
class MyClassType extends AbstractType

mercure.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ You can instead make use of the `MockHub`::
622622

623623
$controller = new MessageController($hub);
624624

625-
...
625+
// ...
626626
}
627627
}
628628

@@ -647,11 +647,12 @@ During functional testing you can instead decorate the Hub::
647647
HubStub decorates the default hub service so no updates are actually
648648
sent. Here is the HubStub implementation::
649649

650+
.. code-block:: yaml
651+
650652
# config/services_test.yaml
651653
App\Tests\Functional\Fixtures\HubStub:
652654
decorates: mercure.hub.default
653655
654-
655656
Debugging
656657
---------
657658

0 commit comments

Comments
 (0)