Skip to content

Remove PHP 8+ polyfills and use native string functions#656

Merged
daftspunk merged 1 commit intooctobercms:4.xfrom
Samuell1:remove-php8-polyfills
Jan 17, 2026
Merged

Remove PHP 8+ polyfills and use native string functions#656
daftspunk merged 1 commit intooctobercms:4.xfrom
Samuell1:remove-php8-polyfills

Conversation

@Samuell1
Copy link
Member

  • Remove starts_with() and ends_with() helper functions
  • Replace with native str_starts_with() and str_ends_with()
  • Use Str::startsWith() for array-needle cases (HtmlBuilder, SyntaxModelTrait)

- Remove starts_with() and ends_with() helper functions
- Replace with native str_starts_with() and str_ends_with()
- Use Str::startsWith() for array-needle cases (HtmlBuilder, SyntaxModelTrait)
@daftspunk daftspunk merged commit f7eafda into octobercms:4.x Jan 17, 2026
4 checks passed
@daftspunk
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants