Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add uopz 6.x functions #482

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
ondrejmirtes merged 1 commit into phpstan:master from zonuexe:add/uopz-functions
Mar 22, 2021
Merged

Add uopz 6.x functions #482

ondrejmirtes merged 1 commit into phpstan:master from zonuexe:add/uopz-functions
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.

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'],
Copy link

@SMillerDev SMillerDev May 19, 2021

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

@ondrejmirtes ondrejmirtes May 19, 2021

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.

Copy link

@SMillerDev SMillerDev May 19, 2021

Choose a reason for hiding this comment

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

Will do, thanks.

Copy link

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

zonuexe reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ondrejmirtes ondrejmirtes ondrejmirtes left review comments

+1 more reviewer

@SMillerDev SMillerDev SMillerDev left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /