Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] Statamic 5 #441

Merged
merged 17 commits into from
Apr 9, 2024
Merged

[7.x] Statamic 5 #441

merged 17 commits into from
Apr 9, 2024

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Feb 23, 2024

This pull request makes the necessary changes required to support Statamic 5.

This PR will be added to as time goes on.

Changes

  • Updates the version constraint in composer.json
  • Adjusted testing matrix
  • Changed how we call the Antlers parser
    • Previously, we were directly calling the Regex parser. However, the Regex Parser has been removed in Statamic 5 so this updates the code to call Antlers::parser() instead.
  • Simplifies the TestCase
  • Documentation updates
  • Replaces laravel/helpers functions
    • Statamic 5 dropped the laravel/helpers dependency, which provided backwards compatibility for old string/array helpers.
    • We were using some of the helpers provided by this package, so I've replaced them with calls to Laravel's Str class.
  • Improved the UX of Runway's commands by introducing Laravel Prompts and using Laravel's console components ($this->components->...)
  • The Eloquent Models now use the casts method for defining casts, rather than the $casts property used in older versions of Laravel.

@duncanmcclean duncanmcclean changed the base branch from 6.x to master March 15, 2024 11:48
@duncanmcclean duncanmcclean mentioned this pull request Mar 15, 2024
@duncanmcclean duncanmcclean marked this pull request as ready for review April 9, 2024 18:57
@duncanmcclean duncanmcclean merged commit 7678cc9 into master Apr 9, 2024
6 checks passed
@duncanmcclean duncanmcclean deleted the statamic-5 branch April 9, 2024 18:57
Copy link

github-actions bot commented May 9, 2024

Released as part of v7.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant