online payments for card order
This commit is contained in:
@@ -54,6 +54,18 @@ function module_exists(string $moduleName): bool
|
||||
return modular()->moduleExists($moduleName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Cast to string
|
||||
*/
|
||||
function string(mixed $value): string
|
||||
{
|
||||
if (! is_string($value)) {
|
||||
throw new Exception('!!!Make it string!!!');
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an anonymous dynamic object with both properties and callable methods.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user