diffFinder = $objectManager->create(Diff::class); } error_reporting($currentErrorLevel); } public function render(string $fromText, string $toText): string { if ($this->diffFinder === null) { throw new \RuntimeException( '\'d4h/finediff\' library not found. ' . 'Please run \'composer require d4h/finediff\' command to install it.' ); } return $this->diffFinder->render($fromText, $toText); } }