Skip to content

Commit 1d11816

Browse files
committed
Fix issues
1 parent 1f682ca commit 1d11816

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.doctor-rst.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,4 @@ whitelist:
122122
- 'End to End Tests (E2E)'
123123
- '.. versionadded:: 2.2.0' # Panther
124124
- '* Inline code blocks use double-ticks (````like this````).'
125+
- '- !php/const App\Service\AnotherService::SOME_CONSTANT'

service_container.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@ as arguments of other services:
341341
- 3.14
342342
343343
# constants can be built-in, user-defined, or Enums
344-
- !php/const true
345344
- !php/const E_ALL
346345
- !php/const PDO::FETCH_NUM
347346
- !php/const App\Service\AnotherService::SOME_CONSTANT
@@ -383,7 +382,6 @@ as arguments of other services:
383382
<argument type="constant">true</argument>
384383
385384
<!-- constants can be built-in, user-defined, or Enums -->
386-
<argument type="constant">true</argument>
387385
<argument type="constant">E_ALL</argument>
388386
<argument type="constant">PDO::FETCH_NUM</argument>
389387
<argument type="constant">App\Service\AnotherService::SOME_CONSTANT</argument>
@@ -406,6 +404,7 @@ as arguments of other services:
406404
407405
<!-- ... -->
408406
</services>
407+
</container>
409408
410409
.. code-block:: php
411410
@@ -428,8 +427,8 @@ as arguments of other services:
428427
// constants: built-in, user-defined, or Enums
429428
->arg(4, E_ALL)
430429
->arg(5, \PDO::FETCH_NUM)
431-
->arg(6, \App\Service\AnotherService::SOME_CONSTANT)
432-
->arg(7, \App\Config\SomeEnum::SomeCase)
430+
->arg(6, App\Service\AnotherService::SOME_CONSTANT)
431+
->arg(7, App\Config\SomeEnum::SomeCase)
433432
434433
// when not using autowiring, you can pass service arguments explicitly
435434
->arg(8, service('some-service-id')) # fails if service doesn't exist

0 commit comments

Comments
 (0)