getbrevo / brevo-php

A fully-featured PHP API client to interact with Brevo.
https://developers.brevo.com/
MIT License
49 stars 22 forks source link

lib/Model/Pipelines.php: Cannot use "parent" when current class scope has no parent #20

Closed akater closed 7 months ago

akater commented 8 months ago

I successfully instantiated a Brevo\Client\Api\DealsApi object. Calling crmPipelineDetailsAllGet() on it, as suggessted in an example in DealsApi.md, triggers the following error:

Cannot use "parent" when current class scope has no parent
in brevo-php/lib/Model/Pipelines.php
on line 190

May be related: #8

akater commented 8 months ago

If I redefine listInvalidProperties() to always return array();, crmPipelineDetailsAllGet() returns the following

Brevo\Client\Model\Pipelines Object
(
    [container:protected] => Array
        (
        )

)

even though there is a default pipeline. I don't understand anything about PHP but this doesn't feel right.

preetishishodia7 commented 7 months ago

Hi @akater We have fixed this issue in our latest SDK version (.I.e. 1.0.3).

Thank you for your patience and understanding!