Skip to content
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

Add uopz 6.x functions #482

Merged
merged 1 commit into from
Mar 22, 2021
Merged

Add uopz 6.x functions #482

merged 1 commit into from
Mar 22, 2021

Conversation

zonuexe
Copy link
Contributor

@zonuexe zonuexe commented Mar 21, 2021

refs https://github.com/krakjoe/uopz/blob/v6.1.2/uopz.c

The parameters in the PHP manual are different from the implementation.

@ondrejmirtes
Copy link
Member

Thank you!

@ondrejmirtes ondrejmirtes merged commit 84f16c8 into phpstan:master Mar 22, 2021
@zonuexe zonuexe deleted the add/uopz-functions branch March 22, 2021 20:12
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'],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SMillerDev Hi, this is a pretty old PR. If you see a buggy behaviour, please open an issue with reproduction, thank you.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do, thanks.

@SMillerDev
Copy link

@ondrejmirtes I don't think this does what it's supposed to actually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants