Commit 784b42b
Fix call_user_func parameter name for PHP 7.4 compatibility
The first parameter of call_user_func is named $function in PHP 7.x
but was renamed to $callback in PHP 8.0+. Use PHP_VERSION_ID to
select the correct name in the test assertion.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3e442f2 commit 784b42b
File tree
1 file changed
+2
-1
lines changed- tests/PHPStan/Rules/Functions
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2819 | 2819 | | |
2820 | 2820 | | |
2821 | 2821 | | |
| 2822 | + | |
2822 | 2823 | | |
2823 | 2824 | | |
2824 | | - | |
| 2825 | + | |
2825 | 2826 | | |
2826 | 2827 | | |
2827 | 2828 | | |
| |||
0 commit comments