Better syntax for registerHook

This commit is contained in:
Alexandre Alapetite 2024-04-07 19:43:54 +02:00
parent cc6bf0d1e6
commit 55ae6368ee
No known key found for this signature in database
GPG key ID: A24378C38E812B23
3 changed files with 4 additions and 10 deletions

View file

@ -5,10 +5,7 @@ final class TTRSS_APIExtension extends Minz_Extension {
#[Override]
public function init(): void {
$this->registerHook(
'post_update',
array($this, 'postUpdateHook')
);
$this->registerHook('post_update', [self::class, 'postUpdateHook']);
}
#[Override]