Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmisek committed May 6, 2024
1 parent 6761242 commit 8815663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Peachpie.Runtime/Dynamic/BinderHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ public static Expression BindAccess(Expression expr, Expression ctx, AccessMask
// Template: Operators.SetValue(ref fld, (PhpValue)value)
expr = Expression.Call(Cache.Operators.SetValue_PhpValueRef_PhpValue, expr, ConvertExpression.Bind(rvalue, typeof(PhpValue), ctx));
}
else if (expr.Type.GetGenericTypeDefinition() == typeof(ClrEvent<>))
else if (expr.Type.IsGenericType && expr.Type.GetGenericTypeDefinition() == typeof(ClrEvent<>))
{
// Template: $object->eventHandler += rvalue; return rvalue;
// rvalue is (eventHadler + callable)
Expand Down

0 comments on commit 8815663

Please sign in to comment.