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.
When I do a coding standards check on the following CTools plugin declaration file:
/**
* @file
* Plugin declaration for the active business selection plugin.
*/
$plugin = array(
'title' => t('Filter on active business'),
'class' => 'EntityReference_SelectionHandler_Active_Business',
);
I'm getting the following notice:
Notice: Undefined offset: 47 in vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/WhiteSpace/ScopeIndentSniff.php on line 205
Comment | File | Size | Author |
---|---|---|---|
#1 | 2421339-1.patch | 968 bytes | pfrenssen |
Comments
Comment #1
pfrenssenComment #2
klausiLet's copy the example code that triggers the notice to a test case.
Comment #3
klausiThat part in the code has been removed again, so this is not necessary anymore.