优化一下代码,适配php 8

This commit is contained in:
gentlyxu 2024-05-12 19:14:07 +08:00
parent 08de5f36d7
commit c080142af9

View File

@ -685,7 +685,7 @@ foreach($ARR_WHITE_RULE_LIST as $row => $v){
continue; continue;
} }
if(array_key_exists("@@||${matches[1]}^", $ARR_WHITE_RULE_BLK_LIST)){ if(array_key_exists("@@||{$matches[1]}^", $ARR_WHITE_RULE_BLK_LIST)){
continue; continue;
} }
@ -695,7 +695,7 @@ foreach($ARR_WHITE_RULE_LIST as $row => $v){
if($v === 1){ if($v === 1){
$wrote_whitelist[$matches[1]] = null; $wrote_whitelist[$matches[1]] = null;
$attached_content .= "@@||${matches[1]}^\n"; $attached_content .= "@@||{$matches[1]}^\n";
$line_count++; $line_count++;
continue; continue;
} }
@ -715,7 +715,7 @@ foreach($ARR_WHITE_RULE_LIST as $row => $v){
continue; continue;
} }
$attached_content .= "@@||${origin_white_rule}^\n"; $attached_content .= "@@||{$origin_white_rule}^\n";
$line_count++; $line_count++;
} }