Fixed support for PHP variable classes