Skip to content

Conversation

@omegaalfa
Copy link

πŸ“„ Description
This PR improves the stubs for the NDArray class in the NumPower extension to ensure greater consistency and alignment with the actual extension API:

βœ… Fixed method signatures: Added missing parameters (e.g., axis, keepdims, etc.) in methods like max(), min(), and others, matching the official extension specification.

βž• Added missing methods: Implemented stubs for methods that were absent, based on the official documentation and C implementation review.

πŸ”„ Updated composer.json: Minor adjustment (if applicable) to keep everything in sync.

πŸ’‘ Motivation:
While integrating NumPower into PHP projects, I noticed some missing or inconsistent NDArray method signatures, which can affect IDE autocompletion and static analysis tools (e.g., PhpStorm, Psalm). This PR aims to enhance the developer experience and accuracy of the stubs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant