Closed (fixed)
Project:
Views GeoJSON
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 May 2020 at 13:26 UTC
Updated:
11 Feb 2021 at 19:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
paulsheldrake commentedThis patch removes the 2 lines
Comment #3
jeffschulerThese are from @Pol's commit #50c8d5b: Update code style. There are more.
What is the warning you're seeing?
@Pol: are you importing these native functions because they could potentially be overridden? We're not doing any namespacing. This seems like overkill.
Comment #4
niels de ruijter commentedThese use statements produce a warning since PHP 7:
They also seem to have no effect at all in PHP 5. So better just remove them all?
Attached patch removes them all.
Comment #5
niels de ruijter commentedComment #7
jeffschulerCommitted. Thanks folks!
@Pol feel free to come back and make your case... :)
Comment #8
polHi Jeff,
What do you mean?
Comment #9
jeffschulerMake the case for importing these native functions.
Comment #10
polOoh ! Sorry :-)
I don't remember in which circumstances I added them... since I don't do Drupal, it's hard for me to keep track of those things... sorry :(
Comment #11
jeffschulerHa. Cool. Thanks.