Commit 176f84c4114 for php
commit 176f84c4114b53b4f127fadae8dc1c44a5ae52a6
Author: Daniel Scherzer <daniel.e.scherzer@gmail.com>
Date: Sun Nov 15 10:04:18 2026 -0800
[`%pS` migration] Use `%pS` in ext/tokenizer (#23171)
diff --git a/ext/tokenizer/tokenizer.c b/ext/tokenizer/tokenizer.c
index e709e756079..eb36ed6ead9 100644
--- a/ext/tokenizer/tokenizer.c
+++ b/ext/tokenizer/tokenizer.c
@@ -101,7 +101,7 @@ PHP_METHOD(PhpToken, tokenize)
/* Check construction preconditions in advance, so these are not repeated for each token. */
if (token_class->ce_flags & ZEND_ACC_EXPLICIT_ABSTRACT_CLASS) {
- zend_throw_error(NULL, "Cannot instantiate abstract class %s", ZSTR_VAL(token_class->name));
+ zend_throw_error(NULL, "Cannot instantiate abstract class %pS", token_class->name);
RETURN_THROWS();
}
if (zend_update_class_constants(token_class) == FAILURE) {