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

Check if Phan has signatures for undeclared functions, classes, etc. in newer php versions #4230

Closed
TysonAndre opened this issue Oct 20, 2020 · 0 comments · Fixed by #4273
Closed
Labels
enhancement This improves the quality of Phan's analysis of a codebase usability

Comments

@TysonAndre
Copy link
Member

<?php
// Observed: PhanUndeclaredFunction Call to undeclared function \str_contains()
// Expected: PhanUndeclaredFunction Call to undeclared function \str_contains() (This function was added in PHP 8.0, but Phan was invoked with php 7.2 and configured target_php_version 7.2)
return str_contains('foo', 'f');
@TysonAndre TysonAndre added enhancement This improves the quality of Phan's analysis of a codebase usability labels Oct 20, 2020
TysonAndre added a commit to TysonAndre/phan that referenced this issue Nov 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This improves the quality of Phan's analysis of a codebase usability
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant