msgraph-sdk-php
msgraph-sdk-php copied to clipboard
ChangeType enum not handling capitalized values
We are using v1 (1.109.2) and are seeing problems when handling change notifications: "unhandled enum value Updated" Model/ChangeType.php is stating that it only supports updated/deleted/created (note the lower case words). Notifications apparently have Updated/Deleted/Created (since a new update on the Graph servers ?).
We are seeing this when calling ChangeNotification::getChangeType(). The ChangeNotification object has been created when handling the incoming request that we receive, something like this:
$notificationData = $request->getDecodedJsonContent();
$notification = new ChangeNotification($notificationData);
$changeType = $notification->getChangeType(); <===== Throws!