- TSPHP-736 wrong syntax can mess up namespace scope generation which causes NullPointerException
-- added additional check to exitScope -> only get enclosing if not already in namespace
- TSPHP-735 operation with undefined variable/constant results in NullPointerException
-- added tests
-- fixed problem when undefined variable/constant was used in conjunction with the ternary operator (inspired by this bug)
- TSPHP-669 missing $ causes NullPointerException
-- already fixed in conjunction with TSPHP-735 operation with undefined variable/constant results in NullPointerException
-- added the use case of the bug to the test
- TSPHP-663 return without value causes NullPointerException
- TSPHP-489 NullPointerException when function return value void is assigned to a variable