--TEST-- Bug #73789 (Strange behavior of class constants in switch/case block) --SKIPIF-- --FILE-- 100) { return $type; } return self::T_STRING; case $value === '.': return self::T_DOT; default: } return $type; } } var_dump((new Lexer())->getType("dot")); --EXPECT-- int(2)