@@ -177,7 +177,7 @@ public function setNew(array $new): self
177177 */
178178 public function setOptions (array $ options ): self
179179 {
180- $ mergedOptions = $ options + static ::$ defaultOptions ;
180+ $ mergedOptions = $ options + self ::$ defaultOptions ;
181181
182182 if ($ this ->options !== $ mergedOptions ) {
183183 $ this ->options = $ mergedOptions ;
@@ -196,7 +196,7 @@ public function setOptions(array $options): self
196196 *
197197 * @return string[] array of all of the lines between the specified range
198198 */
199- public function getOld (int $ start = 0 , ? int $ end = null ): array
199+ public function getOld (int $ start = 0 , int $ end = null ): array
200200 {
201201 return Arr::getPartialByIndex ($ this ->old , $ start , $ end );
202202 }
@@ -210,7 +210,7 @@ public function getOld(int $start = 0, ?int $end = null): array
210210 *
211211 * @return string[] array of all of the lines between the specified range
212212 */
213- public function getNew (int $ start = 0 , ? int $ end = null ): array
213+ public function getNew (int $ start = 0 , int $ end = null ): array
214214 {
215215 return Arr::getPartialByIndex ($ this ->new , $ start , $ end );
216216 }
@@ -260,7 +260,7 @@ public static function getInstance(): self
260260 {
261261 static $ singleton ;
262262
263- return $ singleton ??= new static ([], []);
263+ return $ singleton ??= new self ([], []);
264264 }
265265
266266 /**
@@ -491,7 +491,7 @@ private function finalize(): self
491491 */
492492 private function resetCachedResults (): self
493493 {
494- foreach (static ::CACHED_PROPERTIES as $ property => $ value ) {
494+ foreach (self ::CACHED_PROPERTIES as $ property => $ value ) {
495495 $ this ->{$ property } = $ value ;
496496 }
497497
0 commit comments