Use strict identical operator when checking geometry format #756
This commit is contained in:
parent
56b3b4de95
commit
d16bc107ad
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Fixed
|
||||
|
||||
- [Correct alter hook to add password grant to static scopes #755](https://github.com/farmOS/farmOS/pull/755)
|
||||
- [Use strict identical operator when checking geometry format #756](https://github.com/farmOS/farmOS/pull/756)
|
||||
|
||||
## [3.0.0-beta3] 2023-11-27
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ class ContentEntityGeometryNormalizer implements NormalizerInterface, Serializer
|
|||
// Check that the data is a content entity.
|
||||
// Only formats that are prefixed with "geometry_" are supported.
|
||||
// This makes it easier for other modules to provide geometry encoders.
|
||||
return $data instanceof ContentEntityInterface && strpos($format, 'geometry_') == 0;
|
||||
return $data instanceof ContentEntityInterface && strpos($format, 'geometry_') === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue