Skip to content

Commit

Permalink
Update Str.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar authored Sep 16, 2019
1 parent 52a91e0 commit e7723d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Helpers/Str.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ class Str extends IlluminateStr
/**
* Escape HTML special characters in a string.
*
* @param string $value
* @param \Illuminate\Contracts\Support\Htmlable|string $value
*
* @return string|null
*/
public static function e($value): ?string
public static function e($value = null): ?string
{
if (\is_null($value)) {
return null;
Expand Down

0 comments on commit e7723d8

Please sign in to comment.