StatsD::prefixData() is called statically, so it should be static. Otherwise it generates a PHP warning:

Strict warning: Non-static method StatsD::prefixData() should not be called statically in StatsD::prefixData() (line 114 of sites/all/modules/contrib/statsd/includes/statsd.inc).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TravisCarden’s picture

Assigned: TravisCarden » Unassigned
Status: Active » Needs review
FileSize
498 bytes
eporama’s picture

Status: Needs review » Reviewed & tested by the community

Thanks Travis, this certainly took care of the Strict warnings and a simple enough patch to hand verify.

  • mundanity committed 4b88836 on 7.x-1.x
    #2185529 by TravisCarden, eporama: Fix for non-static method warning
    
mundanity’s picture

Status: Reviewed & tested by the community » Fixed

Yikes, sorry for the delay on this, it's been committed to the 7.x-1.x branch.

Status: Fixed » Closed (fixed)

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

Jonathan Peterson’s picture

Same patch applied against the 6.x branch. Thanks for the original work Travis.