Skip to content

Commit

Permalink
PhpAlias -> IntStringKey
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmisek committed May 24, 2023
1 parent 7a15ac4 commit e4b8351
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Peachpie.Runtime/OrderedDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ public IntStringKey(string/*!*/ key) : this(key.GetHashCode(), key)

public static implicit operator IntStringKey(PhpValue value) => Convert.ToIntStringKey(value);

public static implicit operator IntStringKey(PhpAlias value) => Convert.ToIntStringKey(value.Value);

public static implicit operator IntStringKey(PhpNumber value) => new IntStringKey(value.ToLong());

public static bool operator ==(IntStringKey a, long b) => a.Integer == b && a.IsInteger;
Expand Down

0 comments on commit e4b8351

Please sign in to comment.