Skip to content

Commit d411fdf

Browse files
authoredNov 26, 2024
Fix rST markup in the documentation about stubs (GH-16888)
1 parent a16ee2f commit d411fdf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎docs/source/miscellaneous/stubs.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Additional meta information can be attached to functions, with the following PHP
226226
- ``@deprecated``: Triggers the usual deprecation notice when the function/method is called.
227227

228228
- ``@alias``: If a function/method is an alias of another function/method, then the aliased
229-
function/method name has to be provided as value. E.g. the function ``sizeof()` has the ``@alias
229+
function/method name has to be provided as value. E.g. the function ``sizeof()`` has the ``@alias
230230
count`` annotation.
231231

232232
- ``@implementation-alias``: This is very similar to ``@alias`` with some semantic differences.
@@ -255,7 +255,7 @@ Additional meta information can be attached to functions, with the following PHP
255255
In order to generate code which is necessary for registering constants, classes, properties, enums,
256256
and traits, use the ``@generate-class-entries`` file-level PHPDoc block.
257257

258-
``@generate-class-entries`` implies ``@generate-function-entries```, so the latter is then
258+
``@generate-class-entries`` implies ``@generate-function-entries``, so the latter is then
259259
superfluous.
260260

261261
Given the following stub:
@@ -573,8 +573,8 @@ Then notice the ``#if (PHP_VERSION_ID >= ...)`` conditions in the generated argi
573573
return class_entry;
574574
}
575575
576-
The preprocessor conditions are necessary because ``enum``s, ``readonly`` properties, and the
577-
``not-serializable`` flag, are PHP 8.1 features and don't exist in PHP 8.0.
576+
The preprocessor conditions are necessary because enumerations (``enum``), ``readonly`` properties,
577+
and the ``not-serializable`` flag, are PHP 8.1 features and don't exist in PHP 8.0.
578578

579579
The registration of ``Number`` is therefore completely omitted, while the ``readonly`` flag is not
580580
added for``Elephpant::$name`` for PHP versions before 8.1.

0 commit comments

Comments
 (0)
Failed to load comments.