Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Features exported og permissions comments do not end in full stop, example:
/**
* @file
* project.features.og_features_permission.inc
*/
/**
* Implements hook_og_features_default_permissions().
*/
function project_og_features_default_permissions() {
$permissions = array();
// Exported og permission: 'node:type:close assignment'
$permissions['node:type:close assignment'] = array(
'roles' => array(),
);
return $permissions;
}
When running phpcs with Drupal standard on it it will get flagged by:
Drupal.Commenting.InlineComment.InvalidEndChar
FILE: project.features.og_features_permission.inc
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
13 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Comments
Comment #2
alexverb CreditAttribution: alexverb commentedComment #3
alexverb CreditAttribution: alexverb commentedPlease review patch of parent ticket.
Comment #4
alexverb CreditAttribution: alexverb commented