Replace IS_CONSTANT_ARRAY with IS_CONSTANT_AST for PHP 5.6 and later.