File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,8 @@ public function render(AbstractRenderer $renderer): string
250250
251251 // the "no difference" situation may happen frequently
252252 return $ this ->oldNewComparison === 0
253- ? $ renderer ::getIdenticalResult ()
253+ /** @phan-suppress-next-line PhanDeprecatedFunction */
254+ ? $ renderer ->getResultForIdenticals ()
254255 : $ renderer ->render ();
255256 }
256257
Original file line number Diff line number Diff line change @@ -129,9 +129,20 @@ public function getOptions(): array
129129 return $ this ->options ;
130130 }
131131
132+ /**
133+ * {@inheritdoc}
134+ */
135+ public function getResultForIdenticals (): string
136+ {
137+ /** @phan-suppress-next-line PhanDeprecatedFunction */
138+ return static ::getIdenticalResult ();
139+ }
140+
132141 /**
133142 * Get the renderer result when the old and the new are the same.
134143 *
144+ * @deprecated 6.0.0 use $this->getResultForIdenticals() instead
145+ *
135146 * @return string
136147 */
137148 public static function getIdenticalResult (): string
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public function render(): string
2727 $ changes = $ this ->getChanges ();
2828
2929 if (empty ($ changes )) {
30- return self :: getIdenticalResult ();
30+ return $ this -> getResultForIdenticals ();
3131 }
3232
3333 $ html = '<table class="diff diff-html diff-inline"> ' ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public function render(): string
2727 $ changes = $ this ->getChanges ();
2828
2929 if (empty ($ changes )) {
30- return self :: getIdenticalResult ();
30+ return $ this -> getResultForIdenticals ();
3131 }
3232
3333 $ html = '<table class="diff diff-html diff-side-by-side"> ' ;
You can’t perform that action at this time.
0 commit comments