This commit is contained in:
Damodar Lohani 2024-05-06 06:50:36 +00:00
parent 53547f8677
commit e25e7f8ec7

View file

@ -13,7 +13,7 @@ class FunctionEvent extends Event
*/
public function isValid($value): bool
{
if (str_starts_with($value, 'functions.')) {
if (str_starts_with($value ?? false, 'functions.')) {
$this->message = 'Triggering a function on a function event is not allowed.';
return false;
}