diff --git a/app/Http/Requests/SettingsSamlRequest.php b/app/Http/Requests/SettingsSamlRequest.php index 53a35210183d..c9d91d2ba029 100644 --- a/app/Http/Requests/SettingsSamlRequest.php +++ b/app/Http/Requests/SettingsSamlRequest.php @@ -109,7 +109,7 @@ public function withValidator($validator) ]; $pkey = openssl_pkey_new([ - 'private_key_bits' => config('app.saml_key_size'), + 'private_key_bits' => (int) config('app.saml_key_size'), 'private_key_type' => OPENSSL_KEYTYPE_RSA, ]);