Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Differ.php

function Differ::diff

Same name in this branch
  1. 11.1.x vendor/phpstan/phpdoc-parser/src/Printer/Differ.php \PHPStan\PhpDocParser\Printer\Differ::diff()
  2. 11.1.x vendor/nikic/php-parser/lib/PhpParser/Internal/Differ.php \PhpParser\Internal\Differ::diff()

File

vendor/sebastian/diff/src/Differ.php, line 45

Class

Differ

Namespace

SebastianBergmann\Diff

Code

public function diff(array|string $from, array|string $to, ?LongestCommonSubsequenceCalculator $lcs = null) : string {
    $diff = $this->diffToArray($from, $to, $lcs);
    return $this->outputBuilder
        ->getDiff($diff);
}
RSS feed
Powered by Drupal