dkd / php-cmis-client

This is a PHP CMIS Client implementation based on OpenCMIS. It has been retired and put in to archive mode.
Apache License 2.0
54 stars 34 forks source link

Fix some more undefined index errors #57

Closed sascha-egerer closed 6 years ago

sascha-egerer commented 6 years ago

There are some places where the usage of an array cast in combination with the null coalescing operator ends in an undefined index error and the actual cast is not executed at all. Fix those places by adding some braces around the null coalescing check before casting the end result to an array.

Not sure if the array cast is required at all because the passed value must be an array and casting it could lead to an unexpected result in case of providing an invalid value. But that is a different issue.