这个 php 语法代码有什么问题:
@trigger_error(sprintf("Using '%s' for the value of node '%s' of '%s' is deprecated since version 1.25 and will be removed in 2.0.", is_object($node) ? get_class($node) : null === $node "null": gettype($node), $name, get_class($this)), E_USER_DEPRECATED);
you are missing "?" after $node
and nested ternary expressions are deprecated since PHP 7.4, so wrap it with "( ... )"
here full code:
@trigger_error(
sprintf(
"Using '%s' for the value of node '%s' of '%s' is deprecated since version 1.25 and will be removed in 2.0.",
((is_object($node) ? get_class($node) : null === $node) ? "null" : gettype($node)), $name, get_class($this)),
E_USER_DEPRECATED
);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.