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.
I've been running my code through very strict syntax checking and one thing that keeps coming up is exported objects.
When an object is exported it gets exported with this syntax:
$test = new Class;
According to the code standards it really should be:
$test = new Class();
I'm not really sure if theres a reason why the parenthesis where left out.
Comment | File | Size | Author |
---|---|---|---|
#1 | 0001-Issue-1339084-by-ericduran-Added-Make-the-exported-o.patch | 1.01 KB | ericduran |
Comments
Comment #1
ericduran CreditAttribution: ericduran commentedHere's a patch.
Comment #2
Dave ReidSeems reasonable to me.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedEasy enough. Committed and pushed.