Hello devs for Pico, today while installing the Pico, I got the php - error Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or `a ? b : (c ? d : e) in vendor\twig\twig\lib\Twig\Node.php at line no, 42 and 198.
at line no 42 I had seen the issue,
if (!$node instanceof Twig_NodeInterface) {
@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);
}
Which I solved it, as below,
if (!$node instanceof Twig_NodeInterface) {
@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 same parenthesizing pattern I followed in the Line no 198 to work Pico perfectly.
You can give Pico v3.0.0-alpha.2 a try. Even though it's marked as pre-release, it's actually as stable as Pico v2. The only difference are updated dependencies.
Hello devs for Pico, today while installing the Pico, I got the php - error Unparenthesized
a ? b : c ? d : e
is not supported. Use either(a ? b : c) ? d : e
or `a ? b : (c ? d : e) in vendor\twig\twig\lib\Twig\Node.php at line no, 42 and 198.at line no 42 I had seen the issue,
Which I solved it, as below,
The same parenthesizing pattern I followed in the Line no 198 to work Pico perfectly.
Thank you.![image](https://user-images.githubusercontent.com/83438329/136824396-43b799b8-4b24-4c55-8161-2c75aa6ac9bc.png)