Changes between Version 44 and Version 45 of MapGuideCodingStandards
- Timestamp:
- 09/19/22 06:02:25 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideCodingStandards
v44 v45 211 211 When generated by SWIG as-is, the .net and Java proxy classes are correct, but the PHP proxy class for `MgCoordinateSystemMeasure` will cause the PHP binding to throw a PHP fatal error of the form: 212 212 213 ``` 213 {{{ 214 214 PHP Fatal error: Declaration of MgCoordinateSystemMeasure::GetDistance(MgCoordinate|float|null $arg1, MgCoordinate|float|null $arg2, float $arg3, float $arg4): float must be compatible with MgMeasure::GetDistance(?MgCoordinate $arg1, ?MgCoordinate $arg2): float in Unknown on line 0 215 ``` 215 }}} 216 216 217 217 The remedy was to add a SWIG `%rename` directive to the PHP language binding configuration for this one particular method signature to rename the method to `GetDistanceSimple` avoiding the resulting method signature conflict error above.