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

高版本PHP已废弃这种 $s0{0} 写法,请使用$s0[0] #159

Open
twomiao opened this issue May 9, 2021 · 2 comments
Open

高版本PHP已废弃这种 $s0{0} 写法,请使用$s0[0] #159

twomiao opened this issue May 9, 2021 · 2 comments

Comments

@twomiao
Copy link

twomiao commented May 9, 2021

环境:PHP 7.4.16 (cli) (built: Apr 28 2021 18:20:46) ( NTS )
警告:
PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /mnt/c/Users/twomiao/desktop/phpspider/core/util.php on line 345

Deprecated: Array and string offset access syntax with curly braces is deprecated in /mnt/c/Users/twomiao/desktop/phpspider/core/util.php on line 345

原因:
高版本PHP 不推荐这种写法,return $s0{0}; 请替换为 return $s0[0];

@twomiao twomiao changed the title Array and string offset access syntax with curly braces is deprecated in 高版本PHP已废弃这种 $s0{0} 写法,请使用$s0[0] May 9, 2021
@znmin
Copy link

znmin commented May 12, 2021

一样遇到这个问题,希望作者及时更新

@owner888
Copy link
Owner

owner888 commented Jul 1, 2021

感谢支持,已经修复 ^_^

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

3 participants