statamic / seo-pro

An all-in-one site reporting, metadata wrangling, Open Graph managing, Twitter card making, sitemap generating, turn-key addon for Statamic.
https://statamic.com/addons/statamic/seo-pro
53 stars 36 forks source link

Replace `starts_with()` with `Str::startsWith()` #330

Closed duncanmcclean closed 4 months ago

duncanmcclean commented 4 months ago

In Statamic 5, we dropped our dependency on the laravel/helpers package which provided a variety of array & string helper methods that ultimately pointed towards Laravel's Arr and Str classes.

One of the methods it provides was starts_with, which since it doesn't exist, was causing errors when attempting to view reports in SEO Pro.

Fixes #329.