-
-
Notifications
You must be signed in to change notification settings - Fork 0
scope
github-actions edited this page Mar 26, 2026
·
1 revision
Executes a callback within a deferred scope, ensuring all registered callbacks are executed at the end.
This function MUST create a Defer instance, pass it to the callback, and unset it after execution.
- Full name:
scope - Defined in:
src/functions.php
| Parameter | Type | Description |
|---|---|---|
$callback |
callable | a function that receives the Defer and executes the desired logic |
mixed
the return value of the callback