Skip to content

Conversation

@Lenny4
Copy link
Contributor

@Lenny4 Lenny4 commented Jan 30, 2026

No description provided.

@Lenny4
Copy link
Contributor Author

Lenny4 commented Jan 30, 2026

ready

…d use ! instanceof check instead of ! is_null
$flags = [];
if (isset($funcCall->args[3])) {
return null;
/** @var Arg|Node\Expr\BinaryOp\BitwiseOr|ConstFetch $arg */
Copy link
Member

Choose a reason for hiding this comment

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

args index > 0 should be Arg:

Suggested change
/** @var Arg|Node\Expr\BinaryOp\BitwiseOr|ConstFetch $arg */
/** @var Arg $arg */

$flags = [];
if (isset($funcCall->args[1])) {
return null;
/** @var Arg|Node\Expr\BinaryOp\BitwiseOr|ConstFetch $arg */
Copy link
Member

Choose a reason for hiding this comment

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

args index > 0 should be Arg:

Suggested change
/** @var Arg|Node\Expr\BinaryOp\BitwiseOr|ConstFetch $arg */
/** @var Arg $arg */

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.

2 participants