Skip to content

[7.x] Statamic 5#441

Merged
duncanmcclean merged 17 commits intomasterfrom
statamic-5
Apr 9, 2024
Merged

[7.x] Statamic 5#441
duncanmcclean merged 17 commits intomasterfrom
statamic-5

Conversation

@duncanmcclean
Copy link
Copy Markdown
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
@duncanmcclean duncanmcclean deleted the statamic-5 branch April 9, 2024 18:57
@github-actions
Copy link
Copy Markdown

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