File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -522,14 +522,14 @@ public static bool IsDouble(this PhpValue value)
522522 /// <summary>
523523 /// Alias to <see cref="ToStringOrNull(PhpValue)"/>.
524524 /// </summary>
525- public static string AsString ( this PhpValue value ) => ToStringOrNull ( value ) ;
525+ public static string ? AsString ( this PhpValue value ) => ToStringOrNull ( value ) ;
526526
527527 /// <summary>
528528 /// In case given value contains a string (<see cref="string"/> or <see cref="PhpString"/>),
529529 /// its string representation is returned.
530530 /// Otherwise <c>null</c>.
531531 /// </summary>
532- public static string ToStringOrNull ( this PhpValue value )
532+ public static string ? ToStringOrNull ( this PhpValue value )
533533 {
534534 IsString ( value , out var @string ) ;
535535 return @string ;
@@ -607,7 +607,7 @@ public static byte[] ToBytes(this PhpValue value, Context ctx)
607607 /// Checks the value is of type <c>string</c> or <c>&string</c> and gets its value.
608608 /// Single-byte strings are decoded using <c>UTF-8</c>.
609609 /// </summary>
610- public static bool IsString ( this PhpValue value , out string @string ) => value . IsStringImpl ( out @string ) ;
610+ public static bool IsString ( this PhpValue value , [ MaybeNullWhen ( false ) ] out string @string ) => value . IsStringImpl ( out @string ) ;
611611
612612 /// <summary>
613613 /// Checks the value is constructed as mutable <see cref="PhpString"/>.
You can’t perform that action at this time.
0 commit comments