Refactor SettingsInformationFieldExists to ensure field parameter is cast to string for proper handling
https://github.com/nosial/Socialbox-PHP/issues/64
This commit is contained in:
parent
919f75b8ee
commit
f02109bdc9
1 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,8 @@
|
|||
{
|
||||
throw new MissingRpcArgumentException('field');
|
||||
}
|
||||
$fieldName = InformationFieldName::tryFrom(strtoupper($rpcRequest->getParameter('field')));
|
||||
|
||||
$fieldName = InformationFieldName::tryFrom(strtoupper((string)$rpcRequest->getParameter('field')));
|
||||
if($fieldName === null)
|
||||
{
|
||||
throw new InvalidRpcArgumentException('field');
|
||||
|
|
Loading…
Add table
Reference in a new issue