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)
522
522
/// <summary>
523
523
/// Alias to <see cref="ToStringOrNull(PhpValue)"/>.
524
524
/// </summary>
525
- public static string AsString ( this PhpValue value ) => ToStringOrNull ( value ) ;
525
+ public static string ? AsString ( this PhpValue value ) => ToStringOrNull ( value ) ;
526
526
527
527
/// <summary>
528
528
/// In case given value contains a string (<see cref="string"/> or <see cref="PhpString"/>),
529
529
/// its string representation is returned.
530
530
/// Otherwise <c>null</c>.
531
531
/// </summary>
532
- public static string ToStringOrNull ( this PhpValue value )
532
+ public static string ? ToStringOrNull ( this PhpValue value )
533
533
{
534
534
IsString ( value , out var @string ) ;
535
535
return @string ;
@@ -607,7 +607,7 @@ public static byte[] ToBytes(this PhpValue value, Context ctx)
607
607
/// Checks the value is of type <c>string</c> or <c>&string</c> and gets its value.
608
608
/// Single-byte strings are decoded using <c>UTF-8</c>.
609
609
/// </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 ) ;
611
611
612
612
/// <summary>
613
613
/// Checks the value is constructed as mutable <see cref="PhpString"/>.
You can’t perform that action at this time.
0 commit comments