feat: add post, user, category, tag hooks actions #159
Annotations
4 errors
Run static analysis:
src/actions/class-action.php#L54
Method Storipress\Storipress\Actions\Action::send() has parameter $args with no value type specified in iterable type array.
|
Run static analysis:
src/actions/class-action.php#L79
Parameter #2 $args of function wp_remote_post expects array{method?: string, timeout?: float, redirection?: int, httpversion?: string, user-agent?: string, reject_unsafe_urls?: bool, blocking?: bool, headers?: array|string, ...}, array{headers: array{Content-Type: 'application/json', Storipress-Signature: string|null, Storipress-Timestamp: int<1, max>}, body: string|false} given.
|
Run static analysis:
src/class-action-handler.php#L47
Property Storipress\Storipress\Action_Handler::$actions (array<string, Storipress\Storipress\Actions\Action>) does not accept array<int, Storipress\Storipress\Actions\Category_Created|Storipress\Storipress\Actions\Category_Deleted|Storipress\Storipress\Actions\Category_Edited|Storipress\Storipress\Actions\Post_Deleted|Storipress\Storipress\Actions\Post_Saved|Storipress\Storipress\Actions\Tag_Created|Storipress\Storipress\Actions\Tag_Deleted|Storipress\Storipress\Actions\Tag_Edited|Storipress\Storipress\Actions\User_Created|Storipress\Storipress\Actions\User_Deleted|Storipress\Storipress\Actions\User_Edited>.
|
Run static analysis
Process completed with exit code 1.
|
The logs for this run have expired and are no longer available.
Loading