Skip to content

Commit 6bc0dd8

Browse files
committed
Merge branch 'fix/remove-union-types' of https://github.com/5am-code/laravel-notion-api into fix/remove-union-types
2 parents 03ff37d + 8a4cb91 commit 6bc0dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entities/Blocks/Block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private static function mapTypeToClass(string $type): string
216216
protected static function assertValidTextContent($textContent)
217217
{
218218
if (! is_array($textContent) && ! is_string($textContent)) {
219-
throw new HandlingException('$textContent content must be a string.');
219+
throw new HandlingException('$textContent content must be a string or an array.');
220220
}
221221
}
222222
}

0 commit comments

Comments
 (0)