8000 Merge branch '3.4' into 4.2 · symfony/symfony-docs@a7d13cf · GitHub
[go: up one dir, main page]

Skip to content

Commit a7d13cf

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: Recommend including the package name in messages add blank line before directive
2 parents f6fcc14 + 6434a5b commit a7d13cf

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

contributing/code/conventions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ A feature is marked as deprecated by adding a ``@deprecated`` phpdoc to
9191
relevant classes, methods, properties, ...::
9292

9393
/**
94-
* @deprecated since version 2.8, to be removed in 3.0. Use XXX instead.
94+
* @deprecated since vendor-name/package-name 2.8, to be removed in 3.0. Use XXX instead.
9595
*/
9696

9797
The deprecation message should indicate the version when the class/method was
@@ -102,7 +102,7 @@ A PHP ``E_USER_DEPRECATED`` error must also be triggered to help people with
102102
the migration starting one or two minor versions before the version where the
103103
feature will be removed (depending on the criticality of the removal)::
104104

105-
@trigger_error('XXX() is deprecated since version 2.8 and will be removed in 3.0. Use XXX instead.', E_USER_DEPRECATED);
105+
@trigger_error('XXX() is deprecated since vendor-name/package-name 2.8 and will be removed in 3.0. Use XXX instead.', E_USER_DEPRECATED);
106106

107107
Without the `@-silencing operator`_, users would need to opt-out from deprecation
108108
notices. Silencing swaps this behavior and allows users to opt-in when they are

contributing/code/standards.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ short example containing most features described below::
6767
*/
6868
public function someDeprecatedMethod()
6969
{
70-
@trigger_error(sprintf('The %s() method is deprecated since version 2.8 and will be removed in 3.0. Use Acme\Baz::someMethod() instead.', __METHOD__), E_USER_DEPRECATED);
70+
@trigger_error(sprintf('The %s() method is deprecated since vendor-name/package-name 2.8 and will be removed in 3.0. Use Acme\Baz::someMethod() instead.', __METHOD__), E_USER_DEPRECATED);
7171

7272
return Baz::someMethod();
7373
}

forms.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,7 @@ There's a lot more to learn and a lot of *powerful* tricks in the form system.
722722

723723
Learn more
724724
----------
725+
725726
.. toctree::
726727
:maxdepth: 1
727728
:glob:

service_container/alias_private.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ or you decided not to maintain it anymore), you can deprecate its definition:
230230
231231
# config/services.yaml
232232
App\Service\OldService:
233-
deprecated: The "%service_id%" service is deprecated since 2.8 and will be removed in 3.0.
233+
deprecated: The "%service_id%" service is deprecated since vendor-name/package-name 2.8 and will be removed in 3.0.
234234
235235
.. code-block:: xml
236236
@@ -242,7 +242,7 @@ or you decided not to maintain it anymore), you can deprecate its definition:
242242
243243
<services>
244244
<service id="App\Service\OldService">
245-
<deprecated>The "%service_id%" service is deprecated since 2.8 and will be removed in 3.0.</deprecated>
245+
<deprecated>The "%service_id%" service is deprecated since vendor-name/package-name 2.8 and will be removed in 3.0.</deprecated>
246246
</service>
247247
</services>
248248
</container>
@@ -256,7 +256,7 @@ or you decided not to maintain it anymore), you can deprecate its definition:
256256
->register(OldService::class)
257257
->setDeprecated(
258258
true,
259-
'The "%service_id%" service is deprecated since 2.8 and will be removed in 3.0.'
259+
'The "%service_id%" service is deprecated since vendor-name/package-name 2.8 and will be removed in 3.0.'
260260
)
261261
;
262262

0 commit comments

Comments
 (0)
0