Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
Thank you for raising this issue and for taking the time to report it on the Microsoft Graph PHP GitHub repository.
Based on the discussion in the referenced PHP issue, the PHP developers have confirmed that this is expected language behavior. Numeric string array keys are automatically converted to integers when the array is created, and array_keys() simply returns the keys as they exist. The issue has been closed as not planned, as changing this behavior would introduce a significant backward compatibility break.
Since you've already reported this to the Microsoft Graph PHP SDK repository and that issue has now been closed as not planned, there isn't anything further we can confirm from the Microsoft Q&A forum. This forum is intended for product support and documentation guidance, while design decisions and code changes for the SDK are handled by the maintainers on GitHub.
Thank you for your understanding.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.