Skip to content

Instantly share code, notes, and snippets.

@kkeith-adg
kkeith-adg / patch-authorizenet.php
Created March 25, 2021 03:45
Authorize.net PHP SDK - PHP 8 Patch
<?php
declare(strict_types=1);
const AUTHNET_PATH = __DIR__ . '/vendor/authorizenet/authorizenet/lib/net/authorize/api/contract/v1';
function get_php_files(string $path): Generator {
$path = rtrim($path, '/');
if (!is_dir($path)) {
throw new Exception(sprintf('Directory does not exist: %s', $path));