This is not exactly a "problem", but more a "why" question.
Based on the following example:
echo 'test' . ( true ? : 'some-test' );
Why is the result of this: test1
instead of what one might expect: test
.
Or in other words: Why is an empty return statement 1
(or actually true
) instead of null
?