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.
Problem/Motivation
Visibility must be declared on method "__construct"
Proposed resolution
Add visibility public to __construct method
Comment | File | Size | Author |
---|---|---|---|
#5 | 3119728_2-5.txt | 11.46 KB | swatichouhan012 |
#5 | 3119728-5.patch | 13.49 KB | swatichouhan012 |
| |||
#2 | pathauto-Visibility_must_be_declared_on_method_construct-3119728-2-D8.patch | 915 bytes | thalles |
|
Comments
Comment #2
thallesFollow a patch
Comment #3
swatichouhan012 CreditAttribution: swatichouhan012 at Valuebound for Valuebound commentedThere is more same type issue other files, lets increase the scope of this issue and fix in complete module.
Comment #4
swatichouhan012 CreditAttribution: swatichouhan012 at Valuebound for Valuebound commentedComment #5
swatichouhan012 CreditAttribution: swatichouhan012 at Valuebound for Valuebound commentedI have updated patch to mix visibility method error, kindly review.
Comment #6
thallesThanks @swatichouhan012!
Looks good to me!
Comment #7
BerdirCommitted.