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 using PHP 5.6, and probably 5.4 and 5.5, the following notices are reported:
- Strict warning: Declaration of flag_handler_field_ops::query() should be compatible with views_handler_field::query($group_by = false) in views_include_handler() (line 98 of sites/all/modules/contrib/views/includes/handlers.inc).
- Strict warning: Declaration of flag_handler_relationship_content::query() should be compatible with views_handler_relationship::query($group_by = false) in views_include_handler() (line 98 of sites/all/modules/contrib/views/includes/handlers.inc).
- Strict warning: Declaration of flag_handler_relationship_counts::query() should be compatible with views_handler_relationship::query($group_by = false) in views_include_handler() (line 98 of sites/all/modules/contrib/views/includes/handlers.inc).
- Strict warning: Declaration of flag_handler_relationship_user_content::query() should be compatible with views_handler_relationship::query($group_by = false) in views_include_handler() (line 98 of sites/all/modules/contrib/views/includes/handlers.inc).
Comments
Comment #2
DamienMcKennaFYI I'm working against a copy of Views that has #2411093: PHP strict warnings: Declaration of ... should be compatible with ... applied.
Comment #3
SeanA CreditAttribution: SeanA commentedThese warnings should go away if patch #18 in the related Views issue is applied.
Comment #4
MichelleI'm tentatively agreeing with SeanA. I don't have a local with php 5.6 for the client to be able to really test it properly but it looks like the errors have gone away on prod since they have that patch.