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 #10594

Merged

Conversation

sabina-talipova
Copy link
Contributor

@sabina-talipova sabina-talipova force-pushed the pulls/5/remove-deprecated-code branch 2 times, most recently from 5649de4 to 4a2fcda Compare December 1, 2022 03:22
@sabina-talipova
Copy link
Contributor Author

Failed CI requires asset-admin PR should be merged before

@sabina-talipova sabina-talipova force-pushed the pulls/5/remove-deprecated-code branch 2 times, most recently from c9fad42 to 7c0ffa6 Compare December 5, 2022 20:01
lang/bg.yml Outdated Show resolved Hide resolved
src/Control/Director.php Outdated Show resolved Hide resolved
src/Forms/FieldList.php Outdated Show resolved Hide resolved
src/Forms/FieldList.php Outdated Show resolved Hide resolved
@@ -357,11 +356,6 @@ public function transactionEnd($chain = false)
{
$result = $this->getTransactionManager()->transactionEnd();

if ($chain) {
Copy link
Member

Choose a reason for hiding this comment

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

Remove the $chain param from the method

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

Copy link
Contributor Author

@sabina-talipova sabina-talipova Dec 6, 2022

Choose a reason for hiding this comment

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

I removed $chain argument from Database::transactionEnd() method.
We should mark $chain as deprecated in Database::transactionEnd() for 4.12 as well.

Copy link
Member

@emteknetnz emteknetnz Dec 7, 2022

Choose a reason for hiding this comment

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

Have you created a PR to add the deprecation in 4.12?

You'll also need to deprecated it for NullDatabase::transactionEnd()

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 created new tickets for this #10609

src/i18n/TextCollection/i18nTextCollector.php Show resolved Hide resolved
src/i18n/i18n.php Show resolved Hide resolved
tests/php/Dev/DeprecationTest.php Outdated Show resolved Hide resolved
tests/php/Dev/DeprecationTest/DeprecationTestObject.php Outdated Show resolved Hide resolved
tests/php/Logging/MonologErrorHandlerTest.php Outdated Show resolved Hide resolved
@sabina-talipova sabina-talipova force-pushed the pulls/5/remove-deprecated-code branch 3 times, most recently from 80c3638 to c231c96 Compare December 7, 2022 00:29
@sabina-talipova sabina-talipova force-pushed the pulls/5/remove-deprecated-code branch from c231c96 to 3b87605 Compare December 7, 2022 03:09
@emteknetnz emteknetnz merged commit 53c0147 into silverstripe:5 Dec 7, 2022
@emteknetnz emteknetnz deleted the pulls/5/remove-deprecated-code branch December 7, 2022 21:50
@GuySartorelli GuySartorelli mentioned this pull request Jan 10, 2023
2 tasks
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