Skip to content

Commit a5e5648

Browse files
committed
Fix some review comments
1 parent cbb3412 commit a5e5648

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/miscellaneous/stubs.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The above example declares the global constants and class ``Foo`` in the top-lev
4848
********************
4949

5050
By convention, stub files have a ``.stub.php`` extension. They are processed by
51-
``build/gen_stub.php``: it uses PHP-Parser_ for parsing, then depending on the configuration and the
51+
``build/gen_stub.php``: it uses `PHP-Parser`_ for parsing, then depending on the configuration and the
5252
supplied arguments, it can generate various artifacts. The following sections will introduce these
5353
capabilities.
5454

@@ -472,16 +472,16 @@ Please note that the feature is only available for built-in stubs inside php-src
472472
there is no way to provide the function list for the optimizer other than overwriting
473473
``zend_func_infos.h`` directly.
474474

475-
Additionally, functions can be evaluated in compile-time if their arguments are known in
475+
Additionally, functions can be evaluated at compile-time if their arguments are known in
476476
compile-time and their behavior if free from side-effects as well as it is not affected by the
477477
global state. Until PHP 8.2, a list of such functions was maintained manually in the optimizer.
478478
However, since PHP 8.2, the ``@compile-time-eval`` PHPDoc tag can be applied to any functions which
479-
conform to the above restrictions in order for them to qualify as evaluable in compile-time. The
479+
conform to the above restrictions in order for them to qualify as evaluable at compile-time. The
480480
feature internally works by adding the ``ZEND_ACC_COMPILE_TIME_EVAL`` function flag.
481481

482482
As of PHP 8.4, the concept of arity-based frameless functions was introduced. This is another
483483
optimization technique, which results in faster internal function calls by eliminating unnecessary
484-
checks for the number of passed parameters (if the number of passed arguments is known in
484+
checks for the number of passed parameters (if the number of passed arguments is known at
485485
compile-time).
486486

487487
In order to take advantage of frameless functions, the ``@frameless-function`` PHPDoc tag has to be

0 commit comments

Comments
 (0)