Found as part of #7774:
Using the source code from 2026-06-17 and this command:
.\it\generate-code.ps1 -descriptionUrl https://developers.notion.com/openapi.json -language "php" -dev
.\it\exec-cmd.ps1 -descriptionUrl https://developers.notion.com/openapi.json -language "php"
The generated client does not compile:
Error: Call to an undefined static method Integration\Test\Client\Models\InternalOrExternalFileWithNameResponseCommon::__construct().
Error: Call to an undefined static method Integration\Test\Client\Models\RichTextItemResponseCommon::__construct().
Error: Call to an undefined static method Integration\Test\Client\Models\UserObjectResponseCommon::__construct().
------ -----------------------------------------------------------------------
Line Client/Models/InternalOrExternalFileWithNameResponse.php
------ -----------------------------------------------------------------------
21 Call to an undefined static method
Integration\Test\Client\Models\InternalOrExternalFileWithNameResponseCommon::__construct().
staticMethod.notFound
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line Client/Models/RichTextItemResponse.php
------ -----------------------------------------------------------------------
21 Call to an undefined static method
Integration\Test\Client\Models\RichTextItemResponseCommon::__construct().
staticMethod.notFound
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line Client/Models/UserObjectResponse.php
------ -----------------------------------------------------------------------
21 Call to an undefined static method
Integration\Test\Client\Models\UserObjectResponseCommon::__construct().
staticMethod.notFound
------ -----------------------------------------------------------------------
Error: [ERROR] Found 3 errors
This is the relevant code:
class InternalOrExternalFileWithNameResponse extends InternalOrExternalFileWithNameResponseCommon implements AdditionalDataHolder, Parsable
{
...
public function __construct() {
parent::__construct();
$this->setAdditionalData([]);
}
The base class has no "_construct" function - is this the reason for the error?
class InternalOrExternalFileWithNameResponseCommon implements Parsable
{
Found as part of #7774:
Using the source code from 2026-06-17 and this command:
The generated client does not compile:
This is the relevant code:
The base class has no "_construct" function - is this the reason for the error?