Skip to content

Add type hints #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 7, 2021
Merged

Add type hints #45

merged 4 commits into from
Sep 7, 2021

Conversation

kleisauke
Copy link
Member

Extended from the add-type-hints branch, this PR adds type hints as discussed in libvips/php-vips#118. To make things easier, type hints are generated from a stub PHP file using the gen_stub.php file found in PHP's source tree.

This was tested without problems on the php-vips and php-vips-ext test suite using PHP 8 in debug mode.

@jcupitt jcupitt merged commit 76ef188 into libvips:master Sep 7, 2021
@jcupitt
Copy link
Member

jcupitt commented Sep 7, 2021

This looks really nice Kleis.

@kleisauke kleisauke deleted the add-type-hints branch September 7, 2021 09:34
@kleisauke
Copy link
Member Author

Oh, I think I forgot to include vips.stub.php and vips_arginfo.h in package.xml. I'll open a PR shortly to fix that.

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.

2 participants