825 Star 2.8K Fork 1.3K

Discuz / DiscuzX

Merged
!487 修复 使用花括号做数组被废弃导致在部分服务器配置下产生提示信息导致程序功能异常的Bug

老周部落:PR_Fix_Deprecated_Curly_Braces Discuz:master

老周部落 Created on: 2020-05-15 21:16
缺陷/BUG

根据PHP 7.4文档,使用花括号做数组下标的功能已在PHP 7.4废弃,在部分未关闭display_error的服务器上,会产生针对此信息的报错,因此此修复转为Bug,并改为在Master上修复。

本PR使用 https://github.com/FriendsOfPHP/PHP-CS-Fixer 工具对代码进行了扫描,并对相关代码并进行了修改。

Ref:
https://www.php.net/manual/en/migration74.deprecated.php

Issue:
#I1FWW5: Meta Issue: PHP8支持

0 comments, 1 participants 1773794 laozhoubuluo 1594507411

Show action logs Hide action logs
oldhuhu merged Pull Request 2020-05-18 16:53
oldhuhu check passed 2020-05-18 16:53
老周部落 updated description 2020-05-15 21:20
老周部落 set priority to Secondary 2020-05-15 21:19
老周部落 added label bug 2020-05-15 21:19
老周部落 assigned reviewer 湖中沉 2020-05-15 21:16
老周部落 assigned reviewer oldhuhu 2020-05-15 21:16
老周部落 assigned reviewer monkeye 2020-05-15 21:16
老周部落 assigned reviewer Discuz! 2020-05-15 21:16
老周部落 assigned reviewer LooTan 2020-05-15 21:16
老周部落 assigned reviewer comsenz-service 2020-05-15 21:16
老周部落 assigned reviewer DiscuzX 2020-05-15 21:16
PHP
1
https://gitee.com/Discuz/DiscuzX.git
git@gitee.com:Discuz/DiscuzX.git
Discuz
DiscuzX
DiscuzX

Search

102255 3a0e046c 1850385 102255 7aaa926c 1850385