diff options
| author | 2025-09-30 16:59:41 -0400 | |
|---|---|---|
| committer | 2025-09-30 22:59:41 +0200 | |
| commit | 72884813e13596d211471482ffdc6d723ed678c9 (patch) | |
| tree | 043856f23bdcae7f9f88294c47c499657c2d05ff /lib/Minz/HookSignature.php | |
| parent | bf6e634e042b726edd97335ac36b2305f8101b3f (diff) | |
Add hook enums (#8036)
- add an enum to handle hook types (enum are available since PHP 8.1)
- change hook calls from string value to enum value
Diffstat (limited to 'lib/Minz/HookSignature.php')
| -rw-r--r-- | lib/Minz/HookSignature.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Minz/HookSignature.php b/lib/Minz/HookSignature.php new file mode 100644 index 000000000..bfc7410d6 --- /dev/null +++ b/lib/Minz/HookSignature.php @@ -0,0 +1,9 @@ +<?php +declare(strict_types=1); + +enum Minz_HookSignature { + case NoneToNone; + case NoneToString; + case OneToOne; + case PassArguments; +} |
