Skip to content

Conversation

antoineveldhoven
Copy link
Contributor

Resolves #769

@RobLoach RobLoach changed the title Support variables in slice filter shorthand. Support variables in slice filter shorthand Nov 6, 2023
Copy link
Collaborator

@RobLoach RobLoach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh this is nice. Thanks a lot. Looks good to me. Anything else we should address before merging?

@antoineveldhoven
Copy link
Contributor Author

Oh this is nice. Thanks a lot. Looks good to me. Anything else we should address before merging?

Thanks for the review, this commit should merge perfectly as-is.
Could you or @willrowe take a look at #874, we really need this to me merged for our project(s).

@willrowe willrowe added this to the v1.17.0 milestone Nov 7, 2023
@antoineveldhoven
Copy link
Contributor Author

@willrowe Thanks for the extensive review; I will add the requested tests as soon as possible.

@antoineveldhoven
Copy link
Contributor Author

@willrowe Can you take a look at my revision of this PR?
I;ve added an additional check for negative length parameter in the slice filter as in PHP: array_slice

@willrowe willrowe merged commit ab8791b into twigjs:master Nov 16, 2023
@JamesB797
Copy link

Nice, thank you for addressing this!

@willrowe
Copy link
Collaborator

@RobLoach can you go ahead and release v1.17.0? Everything in the milestone has been completed, so we might as well release instead of adding more at this point.

@antoineveldhoven antoineveldhoven deleted the slice-filter-variables branch November 17, 2023 14:07
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.

The slice filter shorthand doesn't support variables

4 participants