From 8ce1a7228d576570bfb635d611a29aa0776b1828 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Tue, 14 May 2024 22:29:52 +0100 Subject: [PATCH] Replace `starts_with()` with `Str::startsWith()` (#330) --- src/Reporting/Page.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Reporting/Page.php b/src/Reporting/Page.php index 0536f1ac..c34c190f 100644 --- a/src/Reporting/Page.php +++ b/src/Reporting/Page.php @@ -6,6 +6,7 @@ use Statamic\Facades\File; use Statamic\Facades\YAML; use Statamic\Support\Arr; +use Statamic\Support\Str; class Page { @@ -152,7 +153,7 @@ public function model() public function editUrl() { - if (starts_with($this->id, 'route:')) { + if (Str::startsWith($this->id, 'route:')) { return route('settings.edit', ['settings' => 'routes']); }