Add uopz 6.x functions#482
Merged
ondrejmirtes merged 1 commit intophpstan:masterfrom Mar 22, 2021
zonuexe:add/uopz-functions
Merged
Add uopz 6.x functions#482ondrejmirtes merged 1 commit intophpstan:masterfrom zonuexe:add/uopz-functions
ondrejmirtes merged 1 commit intophpstan:masterfrom
zonuexe:add/uopz-functions
Conversation
Member
|
Thank you! |
SMillerDev
reviewed
May 19, 2021
Comment on lines
+12688
to
+12689
| 'uopz_set_return' => ['bool', 'class'=>'string', 'function'=>'string', 'static'=>'array'], | ||
| 'uopz_set_return\'1' => ['bool', 'function'=>'string', 'static='=>'array'], |
There was a problem hiding this comment.
I might be misunderstanding this, but currently PHPStan is complaining that Parameter #3 $static of function uopz_set_return expects array while parameter #3 is actually the value in the following form:
https://github.com/krakjoe/uopz/blob/v6.1.2/uopz.c#L185-L186
uopz_set_return ( string $class , string $function , mixed $value , bool $execute = false ) : bool
Member
There was a problem hiding this comment.
@SMillerDev Hi, this is a pretty old PR. If you see a buggy behaviour, please open an issue with reproduction, thank you.
|
@ondrejmirtes I don't think this does what it's supposed to actually. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
refs https://github.com/krakjoe/uopz/blob/v6.1.2/uopz.c
The parameters in the PHP manual are different from the implementation.