We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 246396f commit 9a3730bCopy full SHA for 9a3730b
src/Entities/NotionParent.php
@@ -18,6 +18,7 @@ class NotionParent extends Entity
18
protected function setResponseData(array $responseData): void
19
{
20
parent::setResponseData($responseData);
21
+
22
if (
23
$responseData['object'] !== 'page_id'
24
&& $responseData['object'] !== 'database_id'
@@ -26,6 +27,7 @@ protected function setResponseData(array $responseData): void
26
27
) {
28
throw HandlingException::instance('invalid json-array: the given object is not a valid parent');
29
}
30
31
$this->fillFromRaw();
32
33
0 commit comments