Beispiel #1
0
            public override object GetValue(Literal node)
            {
                var value = node.ValueObj;

                if (value != null)
                {
                    // wrap CLR value to PHP value type
                    if (value.GetType() == typeof(byte[]))
                    {
                        value = new PhpBytes((byte[])value);
                    }
                }

                Debug.Assert(PhpVariable.HasLiteralPrimitiveType(value));

                return(value);
            }