Skip to content

Commit 6ae444f

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Fixed syntax errors on 4.4
2 parents 4fa5ab4 + 6b19707 commit 6ae444f

35 files changed

+88
-64
lines changed

components/console/helpers/formatterhelper.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ you can write::
7878
$truncatedMessage = $formatter->truncate($message, 7);
7979
$output->writeln($truncatedMessage);
8080

81-
And the output will be::
81+
And the output will be:
82+
83+
.. code-block:: text
8284
8385
This is...
8486
@@ -93,7 +95,9 @@ from the end of the string::
9395

9496
$truncatedMessage = $formatter->truncate($message, -5);
9597

96-
This will result in::
98+
This will result in:
99+
100+
.. code-block:: text
97101
98102
This is a very long message, which should be trun...
99103

components/console/helpers/table.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ You can add a table separator anywhere in the output by passing an instance of
7272
You can optionally display titles at the top and the bottom of the table::
7373

7474
// ...
75-
$table->setHeaderTitle('Books')
76-
$table->setFooterTitle('Page 1/2')
75+
$table->setHeaderTitle('Books');
76+
$table->setFooterTitle('Page 1/2');
7777
$table->render();
7878

7979
.. code-block:: terminal

components/dom_crawler.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,9 @@ You can virtually set and get values on the form::
524524
// where "registration" is its own array
525525
$values = $form->getPhpValues();
526526

527-
To work with multi-dimensional fields::
527+
To work with multi-dimensional fields:
528+
529+
.. code-block:: html
528530

529531
<form>
530532
<input name="multi[]"/>

components/event_dispatcher.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ determine which instance is passed.
238238
$containerBuilder->addCompilerPass(new AddEventAliasesPass([
239239
\AcmeFooActionEvent::class => 'acme.foo.action',
240240
]));
241-
$containerBuilder->addCompilerPass(new RegisterListenersPass(), PassConfig::TYPE_BEFORE_REMOVING)
241+
$containerBuilder->addCompilerPass(new RegisterListenersPass(), PassConfig::TYPE_BEFORE_REMOVING);
242242

243243
$containerBuilder->register('event_dispatcher', EventDispatcher::class);
244244

components/filesystem.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ absolute paths and returns the relative path from the second path to the first o
252252
'/var/lib/symfony/src/Symfony/Component'
253253
);
254254
// returns 'videos/'
255-
$filesystem->makePathRelative('/tmp/videos', '/tmp')
255+
$filesystem->makePathRelative('/tmp/videos', '/tmp');
256256

257257
``mirror``
258258
~~~~~~~~~~

components/http_foundation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ represented by a PHP callable instead of a string::
585585
header in the response::
586586

587587
// disables FastCGI buffering in nginx only for this response
588-
$response->headers->set('X-Accel-Buffering', 'no')
588+
$response->headers->set('X-Accel-Buffering', 'no');
589589

590590
.. _component-http-foundation-serving-files:
591591

components/intl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ translate into any locale with the ``getName()`` method shown earlier::
328328
The reverse lookup is also possible thanks to the ``getCountryCode()`` method,
329329
which returns the code of the country where the given timezone ID belongs to::
330330

331-
$countryCode = Timezones::getCountryCode('America/Vancouver')
331+
$countryCode = Timezones::getCountryCode('America/Vancouver');
332332
// => $countryCode = 'CA' (CA = Canada)
333333

334334
The `UTC/GMT time offsets`_ of all timezones are provided by ``getRawOffset()``

components/lock.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ method can be safely called repeatedly, even if the lock is already acquired.
5858

5959
Unlike other implementations, the Lock Component distinguishes lock
6060
instances even when they are created for the same resource. It means that for
61-
a given scope and resource one lock instance can be acquired multiple times.
61+
a given scope and resource one lock instance can be acquired multiple times.
6262
If a lock has to be used by several services, they should share the same ``Lock``
6363
instance returned by the ``LockFactory::createLock`` method.
6464

@@ -230,7 +230,7 @@ Lock will be released automatically as soon as one process finishes::
230230
sleep(30);
231231
} else {
232232
// Child process
233-
echo 'The lock will be released now.'
233+
echo 'The lock will be released now.';
234234
exit(0);
235235
}
236236
// ...

components/options_resolver.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ the closure::
507507

508508
$resolver->setDefault('host', function (Options $options, $previousValue) {
509509
if ('ssl' === $options['encryption']) {
510-
return 'secure.example.org'
510+
return 'secure.example.org';
511511
}
512512

513513
// Take default value configured in the base class

components/security/authorization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ expressions have access to a number of
207207

208208
$expression = new Expression(
209209
'"ROLE_ADMIN" in role_names or (not is_anonymous() and user.isSuperAdmin())'
210-
)
210+
);
211211

212212
$vote = $expressionVoter->vote($token, $object, [$expression]);
213213

0 commit comments

Comments
 (0)