Skip to content

Commit 016e4ff

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: Delete APCu Polyfill installation instructions - Symfony 6.4 (>= PHP 8.1) Fix parent constructor call to use null instead of empty array
2 parents 38f7eba + 87e0023 commit 016e4ff

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

performance.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ for maximum performance:
1313

1414
* **Symfony Application Checklist**:
1515

16-
#. :ref:`Install APCu Polyfill if your server uses APC <performance-install-apcu-polyfill>`
1716
#. :ref:`Restrict the number of locales enabled in the application <performance-enabled-locales>`
1817

1918
* **Production Server Checklist**:
@@ -25,16 +24,6 @@ for maximum performance:
2524
#. :ref:`Configure the PHP realpath Cache <performance-configure-realpath-cache>`
2625
#. :ref:`Optimize Composer Autoloader <performance-optimize-composer-autoloader>`
2726

28-
.. _performance-install-apcu-polyfill:
29-
30-
Install APCu Polyfill if your Server Uses APC
31-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32-
33-
If your production server still uses the legacy APC PHP extension instead of
34-
OPcache, install the `APCu Polyfill component`_ in your application to enable
35-
compatibility with `APCu PHP functions`_ and unlock support for advanced Symfony
36-
features, such as the APCu Cache adapter.
37-
3827
.. _performance-enabled-locales:
3928

4029
Restrict the Number of Locales Enabled in the Application
@@ -371,8 +360,6 @@ Learn more
371360
.. _`byte code caches`: https://en.wikipedia.org/wiki/List_of_PHP_accelerators
372361
.. _`OPcache`: https://www.php.net/manual/en/book.opcache.php
373362
.. _`Composer's autoloader optimization`: https://getcomposer.org/doc/articles/autoloader-optimization.md
374-
.. _`APCu Polyfill component`: https://github.com/symfony/polyfill-apcu
375-
.. _`APCu PHP functions`: https://www.php.net/manual/en/ref.apcu.php
376363
.. _`cachetool`: https://github.com/gordalina/cachetool
377364
.. _`open_basedir`: https://www.php.net/manual/ini.core.php#ini.open-basedir
378365
.. _`Blackfire`: https://blackfire.io/docs/introduction?utm_source=symfony&utm_medium=symfonycom_docs&utm_campaign=performance

validation/custom_constraint.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ First you need to create a Constraint class and extend :class:`Symfony\\Componen
2929
// all configurable options must be passed to the constructor
3030
public function __construct(?string $mode = null, ?string $message = null, ?array $groups = null, $payload = null)
3131
{
32-
parent::__construct([], $groups, $payload);
33-
3432
$this->mode = $mode ?? $this->mode;
3533
$this->message = $message ?? $this->message;
34+
35+
parent::__construct(null, $groups, $payload);
3636
}
3737
}
3838
@@ -58,7 +58,7 @@ You can use ``#[HasNamedArguments]`` to make some constraint options required::
5858
?array $groups = null,
5959
mixed $payload = null,
6060
) {
61-
parent::__construct([], $groups, $payload);
61+
parent::__construct(null, $groups, $payload);
6262
}
6363
}
6464

@@ -89,7 +89,7 @@ in the ``__sleep()`` method to ensure they are serialized correctly::
8989
?array $groups = null,
9090
mixed $payload = null,
9191
) {
92-
parent::__construct([], $groups, $payload);
92+
parent::__construct(null, $groups, $payload);
9393
}
9494

9595
public function __sleep(): array

0 commit comments

Comments
 (0)