optimizely/php-sdk

phpdoc on addNotificationListener incorrect

mcfunley opened this issue · 2 comments

$notification_callback is documented as a string, but it should be callable. This causes problems for people using static analyzers (such as https://github.com/phan/phan) that try to enforce this.

* @param string $notification_callback A valid PHP callback

Thanks for submitting, we will take a look.

This was fixed in release 2.2.1: https://github.com/optimizely/php-sdk/blob/master/CHANGELOG.md#221

Thanks for reporting @mcfunley. Going to close this issue.