Commit e9afe3406a0 for php
commit e9afe3406a043026aa868753a95a9f05bcb044ed
Author: Daniel Scherzer <daniel.e.scherzer@gmail.com>
Date: Sat Aug 8 16:28:26 2026 -0700
[`%pS` migration] Use `%pS` in ext/dom/parentnode/tree.c
diff --git a/ext/dom/parentnode/tree.c b/ext/dom/parentnode/tree.c
index 13a99023781..aacc991cc73 100644
--- a/ext/dom/parentnode/tree.c
+++ b/ext/dom/parentnode/tree.c
@@ -465,7 +465,7 @@ static zend_result dom_sanity_check_node_list_types(zval *nodes, uint32_t nodesc
const zend_class_entry *ce = Z_OBJCE(nodes[i]);
if (!instanceof_function(ce, node_ce)) {
- zend_argument_type_error(i + 1, "must be of type %s|string, %s given", ZSTR_VAL(node_ce->name), zend_zval_type_name(&nodes[i]));
+ zend_argument_type_error(i + 1, "must be of type %pS|string, %s given", node_ce->name, zend_zval_type_name(&nodes[i]));
return FAILURE;
}
} else if (type == IS_STRING) {
@@ -474,7 +474,7 @@ static zend_result dom_sanity_check_node_list_types(zval *nodes, uint32_t nodesc
return FAILURE;
}
} else {
- zend_argument_type_error(i + 1, "must be of type %s|string, %s given", ZSTR_VAL(node_ce->name), zend_zval_type_name(&nodes[i]));
+ zend_argument_type_error(i + 1, "must be of type %pS|string, %s given", node_ce->name, zend_zval_type_name(&nodes[i]));
return FAILURE;
}
}