forked from phan/phan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suggest functions from newer target_php_version
Fixes phan#4230
- Loading branch information
1 parent
edc8fe4
commit 268272a
Showing
6 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
%s:6 PhanUndeclaredFunction Call to undeclared function \str_contains() (Did you mean (to use the function str_contains() added in PHP 8.0 in a project with target_php_version=7.1 run with PHP 7.%s without a polyfill parsed by Phan)) | ||
%s:15 PhanUndeclaredFunction Call to undeclared function \str_contains() (Did you mean (to use the function str_contains() added in PHP 8.0 in a project with target_php_version=7.1 run with PHP 7.%s without a polyfill parsed by Phan)) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
// When this test case is run | ||
namespace { | ||
|
||
function contains_x(string $x) { | ||
return str_contains($x, 'x'); | ||
} | ||
var_export(contains_x('xyz')); | ||
|
||
} | ||
|
||
namespace NS914 { | ||
|
||
function contains_x(string $x) { | ||
return str_contains($x, 'x'); | ||
} | ||
var_export(contains_x('xyz')); | ||
|
||
} |