Skip to content

Conversation

@stloyd
Copy link
Member

@stloyd stloyd commented May 3, 2023

Change Log

Added

Fixed

Changed

  • Modify `StrReplace` expression to work with arrays

Removed

Deprecated

Security


Description

PHP implementation of str_replace works both, with single strings, and arrays of pairs.

@norberttech
Copy link
Member

I know its a bc break but maybe we should consider making arguments to also be an Expresssions? So you can str replace with values from other columns?

@stloyd
Copy link
Member Author

stloyd commented May 3, 2023

We can union 3 types IMO, but for expressions, we can add additional validation or force types.

@norberttech
Copy link
Member

on the DSL level we can use union types but in the expression itsefl I would probably go with Expressions only to reduce number of tests

@norberttech norberttech merged commit 05776fb into flow-php:1.x May 3, 2023
@stloyd stloyd deleted the str-replace-arrays branch May 3, 2023 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants