passing null to trim() is deprecated in php8
SandraLin1 opened this issue · comments
Hi guys,
I luckily updated to version 2.2 and I'm running into some issues, the error code is:
bigbluebutton/bigbluebutton-api-php/src/Parameters/CreateMeetingParameters.php:1541
trim(): Passing null to parameter #1 ($string) of type string is deprecated:
Looking into the code it's
'bannerText' => trim($this->bannerText),
in line 1541. I didn't use the bannerText, so it should be null. Apparently, Php8 doesn't accept null in the trim-function.
Thanks for help
Edit: setting the bannerText to an empty string "" solves the problem, though it's not very elegant.
We were just discussing in team about removing default values and replacing them by null as default, it means if it is null the variable will not be sent in the HTTP request. Expect an update very soon.