Update firewall rule with php : rule is updated.. except the expression

I am using https://github.com/cloudflare/cloudflare-php

I try to update a firewall rule

$expression = "(ip.src eq 150.150.150.150);
$firewall->updateFirewallRule($zoneid, $rule->id, $rule->filter->id, $expression , $options, ‘newRule’);

Nothing changes, except the name of the rule newRule, which means parameters and call is correct

Do I need to encode $expression in base64 ? or some special encoding ?
I successfully did it with CURL -which is very unreadable - and I try to use the php rest API provided.

Any suggestion, ideas ?

A post was merged into an existing topic: Unable to add a new rule through PHP rest API