Add phpstan level 7(#544)

This commit is contained in:
Saeed Vaziry
2025-03-12 13:31:10 +01:00
committed by GitHub
parent c22bb1fa80
commit 493cbb0849
437 changed files with 4505 additions and 2193 deletions

View File

@ -10,15 +10,16 @@
* @property int $site_id
* @property int $source_control_id
* @property string $secret
* @property array $events
* @property array $actions
* @property array<string> $events
* @property array<string, mixed> $actions
* @property string $hook_id
* @property array $hook_response
* @property array<string, mixed> $hook_response
* @property Site $site
* @property SourceControl $sourceControl
*/
class GitHook extends AbstractModel
{
/** @use HasFactory<\Database\Factories\GitHookFactory> */
use HasFactory;
protected $fillable = [
@ -39,11 +40,17 @@ class GitHook extends AbstractModel
'hook_response' => 'json',
];
/**
* @return BelongsTo<Site, covariant $this>
*/
public function site(): BelongsTo
{
return $this->belongsTo(Site::class);
}
/**
* @return BelongsTo<SourceControl, covariant $this>
*/
public function sourceControl(): BelongsTo
{
return $this->belongsTo(SourceControl::class);