Type hint all device model relations (#12686)

This commit is contained in:
Jellyfrog
2021-03-31 17:28:47 +02:00
committed by GitHub
parent dc160c6813
commit 4b6efba040
28 changed files with 90 additions and 64 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use LibreNMS\Interfaces\Models\Keyable;
class MplsLsp extends Model implements Keyable
@@ -46,7 +47,7 @@ class MplsLsp extends Model implements Keyable
// ---- Define Relationships ----
public function paths()
public function paths(): HasMany
{
return $this->hasMany(\App\Models\MplsLspPath::class, 'lsp_id');
}