Problem with PHP and addANewFilter function

My request is

        $this->client =  new Pipedrive\Client(null, null, null, $this->_apiAdminToken); 

        $ctrlFilters = $this->client->getFilters();
       
        $myConditions = array();
        $myConditions["glue"] = "and";
        $myConditions["conditions"] = array();
        
        $myConditions["conditions"][0]["glue"] = "and";
        $myConditions["conditions"][0]["conditions"] = array();
        $myConditions["conditions"][0]["conditions"][0]["object"] = "deal";
        $myConditions["conditions"][0]["conditions"][0]["field_id"] = "12509";
        $myConditions["conditions"][0]["conditions"][0]["operator"] = "=";
        $myConditions["conditions"][0]["conditions"][0]["value"] = "270,271";
        $myConditions["conditions"][0]["conditions"][0]["extra_value"] = null;

        $myConditions["conditions"][0]["conditions"][1]["object"] = "deal";
        $myConditions["conditions"][0]["conditions"][1]["field_id"] = "12545";
        $myConditions["conditions"][0]["conditions"][1]["operator"] = ">=";
        $myConditions["conditions"][0]["conditions"][1]["value"] = "2022-04-01";
        $myConditions["conditions"][0]["conditions"][1]["extra_value"] = null;

        $myConditions["conditions"][0]["conditions"][2]["object"] = "deal";
        $myConditions["conditions"][0]["conditions"][2]["field_id"] = "12545";
        $myConditions["conditions"][0]["conditions"][2]["operator"] = "<=";
        $myConditions["conditions"][0]["conditions"][2]["value"] = "2022-04-30";
        $myConditions["conditions"][0]["conditions"][2]["extra_value"] = null;

        $myConditions["conditions"][1]["glue"] = "or";
        $myConditions["conditions"][1]["conditions"] = array();

        $myConditions = json_encode($myConditions);

          
        $name = 'Name Filter';
        $collect['name'] = $name;
           
        $collect['conditions'] = $myConditions;
        
        $type = "deals";
        $collect['type'] = $type;

        $result = $ctrlFilters->addANewFilter($collect);

I get the following error message :

“{“success”:false,“error”:“conditions: This value should be of type array.”,“error_info”:“Visitez developers.pipedrive.com pour en savoir plus sur l\u2019API de Pipedrive.”,“data”:null,“additional_data”:null}”

Thanks for your help