Add arginfo to functions - #8
Conversation
|
@ramsey @remicollet This seems to be the last step to PHP 8 compatibility. Can somebody merge it? |
|
I bet it needs follow-up to create stubs to generate this arginfo |
|
@Jan-E I think it will be easy to manage in long run, for example if extension using Also there's existing stubs to re-use in IDE https://github.com/JetBrains/phpstorm-stubs so only one definition to maintain and which is easier to read |
This doesn't exist in PHP 8.0 any more, as it wasn't as strict as the normal LONG ZPP check. Advantages of stubs is that you define the function as you would in PHP and get type information for parameters and return value and correct default value iniatialition, with all of the functions being declared for the extension instead of doing it manually. There is also work to generate class infos and such from stubs. |
Pros:
Cons:
This PR add arginfo without type hintings, which is fine, but "minimal" for PHP 8 |
|
Is it really hard blocker to use quick fix and release 1.1.4? |
|
I can't use my PHP 8 image because of this error eg with cli command: |
|
Hi, |
Me neither. I had to |
|
Looking forward to having this in there. |
|
I merged master into your arginfo branch, fixed the conflict, and tried to push, but it looks like I don't have permissions to make changes to your branch. I've pushed my changes to a branch in my repo here: https://github.com/ramsey/pecl-php-uploadprogress/tree/arginfo Please pull these changes into your branch and push again so that it kicks off the CI build on GitHub Actions. Thanks! |
|
BTW, as you can see here: https://github.com/ramsey/pecl-php-uploadprogress/actions/runs/1283850036 This does make the tests pass on 8.0 and 8.1! 🎉 |
|
I don't know why I was asking you to merge my changes to this branch. I was able to handle it on my own and merge to master. 🤦🏻♂️ |
|
Can we get a release with this in there soon? Thanks! |
|
Yes |
Extracted arginfo from #5