namespace Civi\Payment;
use InvalidArgumentException;
-use Civi;
use CRM_Core_Error;
use CRM_Core_PseudoConstant;
unset($this->props['default'][$prop]);
}
- /**
- * Save any legacy warnings to log.
- *
- * Called as a shutdown function.
- */
- public static function writeLegacyWarnings() {
- if (!empty(static::$legacyWarnings)) {
- $message = "Civi\\Payment\\PropertyBag related deprecation warnings:\n"
- . implode("\n", array_keys(static::$legacyWarnings));
- Civi::log()->warning($message, ['civi.tag' => 'deprecated']);
- }
- }
-
/**
* @param string $prop
* @param bool $silent if TRUE return NULL instead of throwing an exception. This is because offsetExists should be safe and not throw exceptions.