Use a class member function instead of create_function for the 'excerpt_length' filter.