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 Remove deprecated code #75

Merged

Conversation

sabina-talipova
Copy link
Contributor

@@ -117,9 +115,6 @@ public function checkForDeprecatedConfig($class, $name): void
{
$deprecated = $this->getClassConfig('__deprecated', true);
$data = $deprecated['config'][strtolower($class)][$name] ?? [];
if (!empty($data)) {
Copy link
Member

Choose a reason for hiding this comment

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

Please restore this block, this is not deprecated code, it's code that helps with identifying deprecated code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

* @param string $class
* @param string $name
* @param array $value - non-array values are @deprecated 1.12.0
* @param array $value
*/
public function merge($class, $name, $value)
Copy link
Member

@emteknetnz emteknetnz Dec 5, 2022

Choose a reason for hiding this comment

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

Suggested change
public function merge($class, $name, $value)
public function merge(string $class, string $name, array $value): static

And delete the docblock @params now that we're strong typing this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll have to update interface MutableConfigCollectionInterface as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated method signature in interface MutableConfigCollectionInterface and class MemoryConfigCollection

@sabina-talipova sabina-talipova force-pushed the pulls/2/remove-deprecated-code branch 2 times, most recently from 667c1c1 to 7474b47 Compare December 6, 2022 22:44
@sabina-talipova sabina-talipova force-pushed the pulls/2/remove-deprecated-code branch from 7474b47 to 7a6bee5 Compare December 6, 2022 23:19
@emteknetnz emteknetnz merged commit 3e7097e into silverstripe:2 Dec 7, 2022
@emteknetnz emteknetnz deleted the pulls/2/remove-deprecated-code branch December 7, 2022 21:49
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