Skip to content

Conversation

@zonuexe
Copy link
Contributor

@zonuexe zonuexe commented Mar 21, 2021

@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

Development

Successfully merging this pull request may close these issues.

3 participants