diff --git a/Dockerfile b/Dockerfile index 3be04d3..a46171d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM php:7.4-apache +FROM php:8.2-apache LABEL maintainer="Mark Tompsett " ENV REFRESHED_AT 2021-06-10 diff --git a/SilMock/Google/Service/Directory/Resource/TwoStepVerification.php b/SilMock/Google/Service/Directory/Resource/TwoStepVerification.php index fc10eb6..af6b56e 100644 --- a/SilMock/Google/Service/Directory/Resource/TwoStepVerification.php +++ b/SilMock/Google/Service/Directory/Resource/TwoStepVerification.php @@ -33,7 +33,7 @@ public function turnOff($userKey, $optParams = []) // Update it $twoStepVerificationRecord['onOrOff'] = 'off'; // Get the record id and update it, as needed. - $recordId = $twoStepVerificationRecord['id']; + $recordId = $twoStepVerificationRecord['id'] ?? null; // If there was a recordId, then it probably would be functional // However, we just need this method to exist, not actually work if (! empty($recordId)) {