Refactor constructors to use nullable array type hinting#93
Refactor constructors to use nullable array type hinting#93tirgrig wants to merge 1 commit intogetbrevo:mainfrom
Conversation
- Updated constructors in multiple model classes to accept a nullable array parameter. - Changed the type hint from `array $data = null` to `?array $data = null` for better clarity and to allow null values explicitly.
|
|
Hello getbrevo people, Hope you will be able to merge it rapidly. |
|
Hi, Hope I helped |
|
@bhenscamp this is not possible due there are not only issues with array-property declarations. @getbrevo: this issue will lead into problems with PHP 8.4 and projects were deprecates are treated as exceptions. so the package is not compatible with PHP 8.4. |


array $data = nullto?array $data = nullfor better clarity and to allow null values explicitly.