Skip to content

Commit 306d2bc

Browse files
committed
Fix E_DEPRECATED in zend_vm_gen.php
explode(): Passing null to parameter #2 ($string) of type string is deprecated
1 parent f74a02d commit 306d2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_vm_gen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2497,7 +2497,7 @@ function gen_vm($def, $skel) {
24972497
if (ZEND_VM_KIND == ZEND_VM_KIND_GOTO
24982498
|| ZEND_VM_KIND == ZEND_VM_KIND_SWITCH
24992499
|| (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID && $hot)) {
2500-
foreach (explode(",", $param) as $p) {
2500+
foreach (explode(",", $param ?: '') as $p) {
25012501
$p = trim($p);
25022502
if ($p !== "") {
25032503
$params[$p] = 1;

0 commit comments

Comments
 (0)