-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove @deprecated stuff #3518
Conversation
@morozov There will be rebase conflicts due to changes in Type so we can wait until develop is up-to-date and I'll rebase the PR afterwards. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far. A few notes:
Configuration::setFilterSchemaAssetsExpression()
is also deprecated and should be removed.- There are a few cases with
trigger_error(/* ... */, E_DEPRECATED)
.
public const NAMED_TOKEN = '(?<!:):[a-zA-Z_][a-zA-Z0-9_]*'; | ||
/**#@-*/ | ||
private const POSITIONAL_TOKEN = '\?'; | ||
private const NAMED_TOKEN = '(?<!:):[a-zA-Z_][a-zA-Z0-9_]*'; | ||
|
||
// Quote characters within string literals can be preceded by a backslash. | ||
public const ESCAPED_SINGLE_QUOTED_TEXT = "(?:'(?:\\\\\\\\)+'|'(?:[^'\\\\]|\\\\'?|'')*')"; | ||
public const ESCAPED_DOUBLE_QUOTED_TEXT = '(?:"(?:\\\\\\\\)+"|"(?:[^"\\\\]|\\\\"?)*")'; | ||
public const ESCAPED_BACKTICK_QUOTED_TEXT = '(?:`(?:\\\\\\\\)+`|`(?:[^`\\\\]|\\\\`?)*`)'; | ||
private const ESCAPED_BRACKET_QUOTED_TEXT = '(?<!\b(?i:ARRAY))\[(?:[^\]])*\]'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These constants should also be deprecated and made private.
Also, |
db0b1ff
to
eecf3b9
Compare
Rebased. |
eecf3b9
to
d77510d
Compare
/** | ||
* @dataProvider dataGetPlaceholderPositions | ||
*/ | ||
public function testGetPlaceholderPositions($query, $isPositional, $expectedParamPos) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be reworked in two tests, not deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be testing a deleted method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but the method was split apart into two other methods, not just deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm but the test wasn't? That's weird. Ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, the methods are private.
How do you suggest to test them? Reflection?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Split into two new tests and two data providers, using reflection - if you have better idea let me know. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm but the test wasn't? That's weird. Ok.
I didn't notice it at that time.
[…] if you have better idea let me know. :)
It's good enough to me.
d77510d
to
d983c4f
Compare
Work is being continued here #3538 |
That is not a valid reason to close an open PR that was not inactive - no one even asked me to rebase this PR or anything else. You are basically only stealing my work. |
@Majkl578 Happy to continue the work in here. Since you closed many other PRs and deleted the branches I assumed you were not interested in continuing the work. Apologies if that assumption was incorrect. Would you like to continue the work here? |
I will do it here but at this moment there are no requested changes here - the PR was simply ready for review/merge (except maybe rebase), not aware of anything needed to finish #3518. |
Cool. Can you rebase? Then @morozov and I will help get it reviewed and merged. |
Sure, will do soon. |
…Platform::TRIM_* constants
…addNamedForeignKeyConstraint()
…ion(), Configuration::getFilterSchemaAssetsExpression() and Configuration::getFilterSchemaAssetsExpression()
Thanks @Majkl578! |
Remove @deprecated stuff
Remove @deprecated stuff
Remove @deprecated stuff
Remove @deprecated stuff
Remove @deprecated stuff
Summary
Removes so far @deprecated stuff for DBAL 3.0. Fixes #3508.