Skip to content

Commit c3439f9

Browse files
committed
minor #15267 Fixed syntax error in 5.2 (Nyholm)
This PR was squashed before being merged into the 5.3-dev branch. Discussion ---------- Fixed syntax error in 5.2 Here are the syntax errors I found when running the parser (#15257) on 5.2. Commits ------- 9d1216e Fixed syntax error in 5.2
2 parents 573d1d7 + 9d1216e commit c3439f9

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

mailer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ configurable with the ``verify_peer`` option. Although it's not recommended to
247247
disable this verification for security reasons, it can be useful while developing
248248
the application or when using a self-signed certificate::
249249

250-
$dsn = 'smtp://user:pass@smtp.example.com?verify_peer=0'
250+
$dsn = 'smtp://user:pass@smtp.example.com?verify_peer=0';
251251

252252
.. versionadded:: 5.1
253253

reference/dic_tags.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ is restarted):
372372
373373
$container
374374
->register(SomeService::class)
375-
->addTag('container.preload', ['class' => SomeClass::class)
376-
->addTag('container.preload', ['class' => OtherClass::class)
375+
->addTag('container.preload', ['class' => SomeClass::class])
376+
->addTag('container.preload', ['class' => OtherClass::class])
377377
// ...
378378
;
379379

security.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@ important section is ``firewalls``:
367367
<firewall name="main"
368368
anonymous="true"
369369
lazy="true"/>
370-
</firewall>
371370
</config>
372371
</srv:container>
373372

security/access_control.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Take the following ``access_control`` entries as an example:
6565
https://symfony.com/schema/dic/security/security-1.0.xsd">
6666
6767
<srv:parameters>
68-
<srv:parameter key="env(TRUSTED_IPS)">10.0.0.1, 10.0.0.2</parameter>
68+
<srv:parameter key="env(TRUSTED_IPS)">10.0.0.1, 10.0.0.2</srv:parameter>
6969
</srv:parameters>
7070
7171
<config>

security/experimental_authenticators.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ You can configure this using the ``entry_point`` setting:
226226
<!-- allow authentication using a form or HTTP basic -->
227227
<form-login/>
228228
<http-basic/>
229+
</firewall>
229230
</config>
230231
</srv:container>
231232

session/database.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ and ``RedisProxy``:
9090
arguments:
9191
- '@Redis'
9292
# you can optionally pass an array of options. The only options are 'prefix' and 'ttl',
93-
# which define the prefix to use for the keys to avoid collision on the Redis server
93+
# which define the prefix to use for the keys to avoid collision on the Redis server
9494
# and the expiration time for any given entry (in seconds), defaults are 'sf_s' and null:
9595
# - { 'prefix' => 'my_prefix', 'ttl' => 600 }
9696
@@ -101,7 +101,7 @@ and ``RedisProxy``:
101101
<service id="Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler">
102102
<argument type="service" id="Redis"/>
103103
<!-- you can optionally pass an array of options. The only options are 'prefix' and 'ttl',
104-
which define the prefix to use for the keys to avoid collision on the Redis server
104+
which define the prefix to use for the keys to avoid collision on the Redis server
105105
and the expiration time for any given entry (in seconds), defaults are 'sf_s' and null:
106106
<argument type="collection">
107107
<argument key="prefix">my_prefix</argument>
@@ -119,7 +119,7 @@ and ``RedisProxy``:
119119
->addArgument(
120120
new Reference('Redis'),
121121
// you can optionally pass an array of options. The only options are 'prefix' and 'ttl',
122-
// which define the prefix to use for the keys to avoid collision on the Redis server
122+
// which define the prefix to use for the keys to avoid collision on the Redis server
123123
// and the expiration time for any given entry (in seconds), defaults are 'sf_s' and null:
124124
// ['prefix' => 'my_prefix', 'ttl' => 600],
125125
);
@@ -611,7 +611,7 @@ configure these values with the second argument passed to the
611611
$services->set(MongoDbSessionHandler::class)
612612
->args([
613613
service('doctrine_mongodb.odm.default_connection'),
614-
['id_field' => '_guid', 'expiry_field' => 'eol'],,
614+
['id_field' => '_guid', 'expiry_field' => 'eol'],
615615
])
616616
;
617617
};

0 commit comments

Comments
 (0)