Skip to content

Commit 7db80c5

Browse files
committed
refactor: Removed str function and related code from helpers.php.
1 parent 08b79f3 commit 7db80c5

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

src/Support/helpers.php

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
* This source file is subject to the MIT license that is bundled.
1111
*/
1212

13-
use Illuminate\Support\Str;
14-
use Illuminate\Support\Stringable;
15-
1613
if (! function_exists('env_explode')) {
1714
/**
1815
* @param mixed $default
@@ -82,34 +79,6 @@ function array_is_list(array $array): bool
8279
}
8380
}
8481

85-
if (! function_exists('str')) {
86-
/**
87-
* @param mixed $string
88-
*
89-
* @return Stringable|\Stringable
90-
*
91-
* @codeCoverageIgnore
92-
*/
93-
function str($string = null)
94-
{
95-
if (0 === func_num_args()) {
96-
return new class implements \Stringable {
97-
public function __call($method, $parameters)
98-
{
99-
return Str::$method(...$parameters);
100-
}
101-
102-
public function __toString(): string
103-
{
104-
return '';
105-
}
106-
};
107-
}
108-
109-
return Str::of($string);
110-
}
111-
}
112-
11382
if (! function_exists('json_pretty_encode')) {
11483
/**
11584
* @param mixed $value

0 commit comments

Comments
 (0)