File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -695,7 +695,7 @@ public function discoverTransceivers(): Collection
695695 $ ifIndex = $ ent ['ifIndex ' ] ?? null ;
696696
697697 return new Transceiver ([
698- 'port_id ' => (int ) PortCache::getIdFromIfIndex ($ ifIndex , $ this ->getDevice ()),
698+ 'port_id ' => (int ) PortCache::getIdFromIfIndex (( int ) $ ifIndex , $ this ->getDevice ()),
699699 'index ' => $ index ,
700700 'type ' => $ ent ['entPhysicalDescr ' ] ?? null ,
701701 'vendor ' => $ ent ['entPhysicalMfgName ' ] ?? null ,
@@ -783,7 +783,7 @@ public function discoverQos(): Collection
783783
784784 $ qos ->push (new Qos ([
785785 'device_id ' => $ this ->getDeviceId (),
786- 'port_id ' => $ parent ? null : PortCache::getIdFromIfIndex ($ servicePolicies [$ policyId ]['cbQosIfIndex ' ], $ this ->getDevice ()),
786+ 'port_id ' => $ parent ? null : PortCache::getIdFromIfIndex (( int ) $ servicePolicies [$ policyId ]['cbQosIfIndex ' ], $ this ->getDevice ()),
787787 'type ' => $ dbtype ,
788788 'title ' => $ title ,
789789 'tooltip ' => $ tooltip ,
You can’t perform that action at this time.
0 commit comments