Fix reference to wrong attribute.
PHP has a separate namespace for constants, so lookup in that too.