Skip to content

Commit 00fd687

Browse files
committed
Fix PHPStan errors
1 parent a0e3e28 commit 00fd687

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Models/Component.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function group(): BelongsTo
8383
/**
8484
* Get the incidents for the component.
8585
*
86-
* @return BelongsToMany<Incident, $this>
86+
* @return BelongsToMany<Incident, $this, IncidentComponent>
8787
*/
8888
public function incidents(): BelongsToMany
8989
{

src/Models/Incident.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ protected static function boot()
109109
/**
110110
* Get the components impacted by this incident.
111111
*
112-
* @return BelongsToMany<Component, $this>
113-
*/
112+
* @return BelongsToMany<Component, $this, IncidentComponent>
113+
*/
114114
public function components(): BelongsToMany
115115
{
116116
return $this->belongsToMany(Component::class, 'incident_components')

0 commit comments

Comments
 (0)