--TEST-- GH-18373: Don't substitute self/parent with anonymous class --FILE-- getMethod('test')->getReturnType()->getName(), "\n"; ?> --EXPECT-- self