Skip to content

getIdentifier() method must be of the type string

Compare
Choose a tag to compare
@roukmoute roukmoute released this 16 Apr 06:22
· 6 commits to master since this release
Fixed getIdentifier() must be of the type string (#7)

When `$configuration->getName()` is `null`, which is possible with the default `@ParamConverter` from `FrameworkExtraBundle` an exception will be thrown because `getIdentifier` requires a string as third param. 
Using `?string $name` is not allowed since the bundle should be compatible with php >= 7.1

`private function getIdentifier(Request $request, $options, string $name): string`