Example:
$result = Strings::trimToNull(' ');
Result:
null
public static trimToNull ( string $string ) : string | ||
$string | string | |
return | string |
/** * @test */ public function shouldTrimNull() { //given $string = null; //when $result = Strings::trimToNull($string); //then $this->assertNull($result); }