Skip to content

Commit 57fa3cd

Browse files
committed
nits
1 parent 926f19f commit 57fa3cd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

UPGRADING/UPGRADING_v6.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ there is no breaking change for you so you do not have to do anything.
1919
- Constant `RendererConstant::RENDERER_TYPES`
2020
- Constant `AbstractRenderer::IS_TEXT_RENDERER`
2121

22-
- Now a `Renderer` has `render()` API, but a `Differ` does not.
23-
But if you use those classes by yourself, it should be written like below.
22+
- Now a `Renderer` has `render()` method, but a `Differ` does not.
23+
If you use those classes by yourself, it should be written like below.
2424

2525
```php
2626
use Jfcherng\Diff\Differ;

src/Renderer/AbstractRenderer.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ public function setOptions(array $options): self
8080
{
8181
$newOptions = $options + static::$defaultOptions;
8282

83-
$this->updateLanguage($this->options['language'] ?? '', $newOptions['language']);
83+
$this->updateLanguage(
84+
$this->options['language'] ?? '',
85+
$newOptions['language']
86+
);
8487

8588
$this->options = $newOptions;
8689

0 commit comments

Comments
 (0)