Error on installing Services module, or navigating to api/doc after installing & configuring module (with Services already enabled):

Fatal error: Cannot use Drupal\Component\Utility\String as String because 'String' is a special class name in /var/www/build/html/modules/contrib/rest_api_doc/src/Controller/RestApiDocController.php on line 10

Screenshot of Error Trace

I only relate this to services module in particular because of my surprise at seeing the error on attempting to install Services.

Comments

Grayside created an issue. See original summary.

Grayside’s picture

Issue summary: View changes

Fixed formatting syntax.

larowlan’s picture

Thanks, fixing

  • larowlan committed 829c2fe on 8.x-1.x
    Issue #2720341 by larowlan: Fatal Error on Docs View/Install of Services...
larowlan’s picture

Status: Active » Fixed

Rolling a new release -thanks

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.