Skip to content

Commit 78cadfb

Browse files
authored
Fix the markup of the upgrade documentation
1 parent 02600c0 commit 78cadfb

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

docs/upgrade-to-v6.rst

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,36 @@ Supported PHP Versions
1010
Breaking Changes & Removals
1111
---------------------------
1212
- **Removal of `::create` static method for type-based tags**
13-
- The `create` static method has been removed from tag classes that represent type definitions, such as `@param` and `@return` tags. Most users will not be affected, as these methods are rarely used directly. The deprecation notice for these methods was present throughout v5.
14-
- **Migration:**
15-
- If you are instantiating these tag objects directly, use the tag factory or the recommended construction pattern instead.
16-
- Before:
17-
.. code-block:: php
13+
- The `create` static method has been removed from tag classes that represent type definitions, such as `@param` and `@return` tags. Most users will not be affected, as these methods are rarely used directly. The deprecation notice for these methods was present throughout v5.
14+
- **Migration:**
15+
- If you are instantiating these tag objects directly, use the tag factory or the recommended construction pattern instead.
16+
- Before:
17+
.. code-block:: php
1818
19-
$tag = Param::create($body);
20-
- After:
21-
.. code-block:: php
19+
$tag = Param::create($body);
20+
- After:
21+
.. code-block:: php
2222
23-
$factory = \phpDocumentor\Reflection\DocBlock\Tags\Factory\StandardTagFactory::createInstance();
24-
$tag = $factory->create('@param int $foo');
23+
$factory = \phpDocumentor\Reflection\DocBlock\Tags\Factory\StandardTagFactory::createInstance();
24+
$tag = $factory->create('@param int $foo');
2525
2626
- **StandardTagFactory instantiation**
27-
- `StandardTagFactory` must now be created via `createInstance()`.
28-
- **Migration:**
29-
- Before:
30-
.. code-block:: php
27+
- `StandardTagFactory` must now be created via `createInstance()`.
28+
- **Migration:**
29+
- Before:
30+
.. code-block:: php
3131
32-
$factory = new StandardTagFactory();
33-
- After:
34-
.. code-block:: php
32+
$factory = new StandardTagFactory();
33+
- After:
34+
.. code-block:: php
3535
36-
$factory = StandardTagFactory::createInstance();
36+
$factory = StandardTagFactory::createInstance();
3737
3838
- **Removed methods**
39-
- `Method::getArguments` has been removed.
40-
- `Method::create` has been removed.
41-
- **Migration:**
42-
- Refactor code to use the new API for method arguments and creation.
39+
- `Method::getArguments` has been removed.
40+
- `Method::create` has been removed.
41+
- **Migration:**
42+
- Refactor code to use the new API for method arguments and creation.
4343

4444
TypeResolver Upgrade
4545
-------------------

0 commit comments

Comments
 (0)