Use strict identical operator when checking geometry format #756

This commit is contained in:
Paul Weidner 2023-11-30 09:14:47 -08:00 committed by Michael Stenta
parent 56b3b4de95
commit d16bc107ad
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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;
}
/**