None of those snippets contain a ternary operator.
?? is the Null Coalescing Operator[1]
?-> is the nullsafe operator[2]
[1]: https://www.php.net/manual/en/language.operators.comparison.... [2]: https://www.php.net/manual/en/language.oop5.basic.php#langua...