• I got Deprecated warning as:
    Unparenthesized a ? b : c ? d : e is deprecated…./wp-social-bookmarking-light/vendor/twig/twig/lib/Twig/Node.php on line 42 and 198

    As to Twig github page(https://github.com/twigphp/Twig/issues/3003), changed the lines as follows:

    42
    @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);

    198
    @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);

    Author, pls update this plugin, thanks!

  • The topic ‘Quick fix for Deprecated warning of Unparenthesized’ is closed to new replies.