[英]what could be wrong with this php syntax
这个 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 "( ... )"自 PHP 7.4 起不推荐使用
$node
和嵌套三元表达式之后,所以用 "( ... )" 包装它
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
);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.