Skip to content
Snippets Groups Projects
Commit 0794704f authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3456016: Fix implicitly nullable type declarations in Varbase API

parent 6b2fddb5
Branches
Tags
Loading
......@@ -20,7 +20,7 @@ class KeyGenerationException extends \RuntimeException {
* @param \Exception $previous
* Previous exception.
*/
public function __construct($message = "", $code = 0, \Exception $previous = NULL) {
public function __construct($message = "", $code = 0, ?\Exception $previous = NULL) {
if (empty($message)) {
$message = openssl_error_string() ?: 'An internal error occurred';
}
......
......@@ -60,7 +60,7 @@ class OAuthKey {
* @return bool
* TRUE if the key component(s) exist, FALSE otherwise.
*/
public function exists($which = NULL) {
public function exists(?string $which = NULL) {
if ($which) {
$key = $this->configFactory
->get('simple_oauth.settings')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment