Skip to content

Commit d122ead

Browse files
committed
More Syntax fixes
1 parent c7a0948 commit d122ead

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

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
@@ -547,7 +547,7 @@ represented by a PHP callable instead of a string::
547547
header in the response::
548548

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

552552
.. _component-http-foundation-serving-files:
553553

components/options_resolver.rst

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

512512
$resolver->setDefault('host', function (Options $options, $previousValue) {
513513
if ('ssl' === $options['encryption']) {
514-
return 'secure.example.org'
514+
return 'secure.example.org';
515515
}
516516

517517
// Take default value configured in the base class

components/phpunit_bridge.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ constraint to test the validity of the email domain::
629629
{
630630
public function testEmail()
631631
{
632-
$validator = ...
632+
$validator = ...;
633633
$constraint = new Email(['checkMX' => true]);
634634

635635
$result = $validator->validate('[email protected]', $constraint);
@@ -654,7 +654,7 @@ the data you expect to get for the given hosts::
654654
{
655655
DnsMock::withMockedHosts(['example.com' => [['type' => 'MX']]]);
656656

657-
$validator = ...
657+
$validator = ...;
658658
$constraint = new Email(['checkMX' => true]);
659659

660660
$result = $validator->validate('[email protected]', $constraint);

components/security/authorization.rst

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

189189
$expression = new Expression(
190190
'"ROLE_ADMIN" in roles or (not is_anonymous() and user.isSuperAdmin())'
191-
)
191+
);
192192

193193
$vote = $expressionVoter->vote($token, $object, [$expression]);
194194

components/validator/resources.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ implement the PSR-6 interface :class:`Psr\\Cache\\CacheItemPoolInterface`)::
155155

156156
$validator = Validation::createValidatorBuilder()
157157
// ... add loaders
158-
->setMappingCache(new SomePsr6Cache());
158+
->setMappingCache(new SomePsr6Cache())
159159
->getValidator();
160160

161161
.. versionadded:: 4.4

0 commit comments

Comments
 (0)