File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change 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-
1613if (! 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-
11382if (! function_exists ('json_pretty_encode ' )) {
11483 /**
11584 * @param mixed $value
You can’t perform that action at this time.
0 commit comments