|
@@ -30,7 +30,7 @@ discard block |
|
|
block discarded – undo |
|
30
|
30
|
|
|
31
|
31
|
public function filteredByType(DNSRecordType $type): self |
|
32
|
32
|
{ |
|
33
|
|
- return new self(...array_filter($this->records->getArrayCopy(), function (DNSRecord $record) use ($type) { |
|
|
33
|
+ return new self(...array_filter($this->records->getArrayCopy(), function(DNSRecord $record) use ($type) { |
|
34
|
34
|
return $record->getType()->equals($type); |
|
35
|
35
|
})); |
|
36
|
36
|
} |
|
@@ -90,7 +90,7 @@ discard block |
|
|
block discarded – undo |
|
90
|
90
|
throw new \InvalidArgumentException('Invalid value'); |
|
91
|
91
|
} |
|
92
|
92
|
|
|
93
|
|
- $this->records->offsetSet($offset, /** @scrutinizer ignore-type */ $value); |
|
|
93
|
+ $this->records->offsetSet($offset, /** @scrutinizer ignore-type */ $value); |
|
94
|
94
|
} |
|
95
|
95
|
|
|
96
|
96
|
public function offsetUnset($offset): void |
Please login to merge, or discard this patch.