Skip to content

Commit 3757b46

Browse files
authored
Merge pull request #1753 from hydephp/deprecate-global-unslash-function
[1.x] Deprecate the global `unslash` function
2 parents 1bd214e + 2fa5278 commit 3757b46

File tree

14 files changed

+26
-20
lines changed

14 files changed

+26
-20
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This serves two purposes:
2323
- Updated the `.env.example` file to contain more details on the site URL setting's usages in https://github.com/hydephp/develop/pull/1746
2424

2525
### Deprecated
26-
- for soon-to-be removed features.
26+
- Deprecated the global `unslash()` function, replaced with the existing namespaced `\Hyde\unslash()` function in https://github.com/hydephp/develop/pull/1753
2727

2828
### Removed
2929
- for now removed features.

packages/framework/src/Console/Commands/RebuildPageCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use function file_exists;
2222
use function in_array;
2323
use function str_replace;
24-
use function unslash;
24+
use function Hyde\unslash;
2525

2626
/**
2727
* Build a single static site file.

packages/framework/src/Foundation/Kernel/Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use function array_map;
1818
use function is_array;
1919
use function str_starts_with;
20-
use function unslash;
20+
use function Hyde\unslash;
2121
use function unlink;
2222
use function touch;
2323

packages/framework/src/Framework/Actions/CreatesNewPageSourceFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use function basename;
2121
use function in_array;
2222
use function str_contains;
23-
use function unslash;
23+
use function Hyde\unslash;
2424
use function rtrim;
2525

2626
/**

packages/framework/src/Framework/Concerns/RegistersFileLocations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use function array_unique;
1414
use function array_merge;
1515
use function base_path;
16-
use function unslash;
16+
use function Hyde\unslash;
1717

1818
/**
1919
* This trait registers the file paths for important Hyde locations.

packages/framework/src/Framework/Factories/FeaturedImageFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use function str_starts_with;
1515
use function is_string;
16-
use function unslash;
16+
use function Hyde\unslash;
1717

1818
class FeaturedImageFactory extends Concerns\PageDataFactory implements FeaturedImageSchema
1919
{

packages/framework/src/Framework/Services/ViewDiffService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use function Hyde\unixsum_file;
1010
use function str_replace;
1111
use function in_array;
12-
use function unslash;
12+
use function Hyde\unslash;
1313
use function glob;
1414

1515
/**

packages/framework/src/Pages/Concerns/HydePage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
use Hyde\Support\Models\RouteKey;
2626
use Illuminate\Support\Str;
2727

28-
use function unslash;
28+
use function Hyde\unslash;
2929
use function filled;
3030
use function ltrim;
3131
use function rtrim;

packages/framework/src/Pages/DocumentationPage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
use function trim;
1414
use function sprintf;
15-
use function unslash;
15+
use function Hyde\unslash;
1616
use function basename;
1717

1818
/**

packages/framework/src/Support/DataCollections.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use function implode;
1616
use function json_decode;
1717
use function sprintf;
18-
use function unslash;
18+
use function Hyde\unslash;
1919
use function str_starts_with;
2020

2121
/**

0 commit comments

Comments
 (0)