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

False positive that xml_parser_create() can not take null as parameter. #4844

Open
mdeweerd opened this issue Mar 9, 2024 · 0 comments
Open

Comments

@mdeweerd
Copy link

mdeweerd commented Mar 9, 2024

The php documentation confirms that 'null' is an allowed argument value to xml_parser_create, but phan reports a false positive.

<?php
// False positive: PhanTypeMismatchArgumentInternalProbablyReal Argument 1 ($encoding) is null of type null but \xml_parser_create() takes string

$dummy = xml_parser_create(null);

Phan 5.4.2
php-ast version 1.0.16
PHP version used to run Phan: 8.1.13

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

No branches or pull requests

1 participant