Skip to content

Commit dbb0ff9

Browse files
committed
Remove the deprecated global unslash function
1 parent f6f6c05 commit dbb0ff9

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

packages/framework/src/helpers.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,6 @@ function hyde(): HydeKernel
1616
}
1717
}
1818

19-
if (! function_exists('unslash')) {
20-
/**
21-
* Remove trailing slashes from the start and end of a string.
22-
*
23-
* @deprecated This function will be replaced by {@see \Hyde\unslash()} in v2.0
24-
*
25-
* @codeCoverageIgnore This function is deprecated and will be removed in a future release.
26-
*/
27-
#[Deprecated(reason: 'Replaced by the \Hyde\unslash() function', replacement: '\Hyde\unslash(%parametersList%)', since: '1.7.0')]
28-
function unslash(string $string): string
29-
{
30-
return \Hyde\unslash($string);
31-
}
32-
}
33-
3419
if (defined('HYDE_COMPATIBILITY_MODE') && HYDE_COMPATIBILITY_MODE === true) {
3520
// Don't declare these functions when running in compatibility mode.
3621
} else {

0 commit comments

Comments
 (0)