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

API Stop using deprecated API #74

Merged

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Nov 2, 2022

public function merge($class, $name, $value)
{
if (!is_array($value)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

I've added this to validate work where config calls to deprecated ->update() was changed to ->set() (non-array values) and ->merge() (array values). It makes sense add a strong typing to merge() in CMS5

@emteknetnz emteknetnz marked this pull request as ready for review November 9, 2022 01:25
@sabina-talipova sabina-talipova merged commit ec39cb4 into silverstripe:1 Nov 13, 2022
@sabina-talipova sabina-talipova deleted the pulls/1/stop-depr branch November 13, 2022 19:26
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.

2 participants