Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ the library's own API.

## Installation

**Opis JSON Schema** is available on [Packagist] and it can be installed from a
**Opis JSON Schema** is available on [Packagist], and it can be installed from a
command line interface by using [Composer].

```bash
Expand All @@ -54,7 +54,7 @@ Or you could directly reference it into your `composer.json` file as a dependenc
```json
{
"require": {
"opis/json-schema": "^2.4"
"opis/json-schema": "^2.6"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"require": {
"php": "^7.4 || ^8.0",
"ext-json": "*",
"opis/string": "^2.0",
"opis/string": "^2.1",
"opis/uri": "^1.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/ValidationContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ public function getStringLength(): ?int
$shared = $this->sharedObject();

if (!isset($shared->stringLength)) {
$shared->stringLength = UnicodeString::from($this->currentData())->length();
$shared->stringLength = UnicodeString::getStringLength($this->currentData());
}

return $shared->stringLength;
Expand Down