Skip to content

Commit

Permalink
Merge pull request #64 from silinternational/develop
Browse files Browse the repository at this point in the history
Fix dummy method turnOff throwing exception over missing id under PHP 8.2
  • Loading branch information
mtompset authored Aug 16, 2023
2 parents f09dd79 + 65389aa commit 98c83aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.4-apache
FROM php:8.2-apache
LABEL maintainer="Mark Tompsett <[email protected]>"

ENV REFRESHED_AT 2021-06-10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 98c83aa

Please sign in to comment.