mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
PHPStan and StyleCI fixes
- Updated PhpStan PHP version option to match project. - Applied StyleCI changes. - Updated static to self in WebhookFormatter, following static analysis guidance. - Fixed mis-matched header tags.
This commit is contained in:
@ -116,7 +116,7 @@ class WebhookFormatter
|
||||
|
||||
public static function getDefault(string $event, Webhook $webhook, $detail, User $initiator, int $initiatedTime): self
|
||||
{
|
||||
$instance = new static($event, $webhook, $detail, $initiator, $initiatedTime);
|
||||
$instance = new self($event, $webhook, $detail, $initiator, $initiatedTime);
|
||||
$instance->addDefaultModelFormatters();
|
||||
|
||||
return $instance;
|
||||
|
Reference in New Issue
Block a user