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

Code cleanup #4752

Merged
merged 3 commits into from
Aug 24, 2021
Merged

Code cleanup #4752

merged 3 commits into from
Aug 24, 2021

Conversation

morozov
Copy link
Member

@morozov morozov commented Aug 24, 2021

Q A
Type improvement
BC Break no
  1. Exception::limitOffsetInvalid() is unused as of f580f0a (2.0.0-BETA2).
  2. The trigger-related methods are unused as of 5b43f72 (2.0.0-BETA1).
  3. Some escaping in regular expressions is unnecessary.

@@ -453,7 +445,7 @@ protected function _getPortableTableColumnDefinition($tableColumn)

if (
preg_match(
'([A-Za-z]+\(([0-9]+)\,([0-9]+)\))',
'([A-Za-z]+\(([0-9]+),([0-9]+)\))',
Copy link
Member Author

Choose a reason for hiding this comment

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

A comma is not a special character.

@@ -126,7 +126,7 @@ public function listTableForeignKeys($table, $database = null)
'#
(?:CONSTRAINT\s+([^\s]+)\s+)?
(?:FOREIGN\s+KEY[^\)]+\)\s*)?
REFERENCES\s+[^\s]+\s+(?:\([^\)]+\))?
REFERENCES\s+[^\s]+\s+(?:\([^)]+\))?
Copy link
Member Author

Choose a reason for hiding this comment

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

Parentheses don't have special meaning within a character class.

@morozov morozov merged commit f5fc751 into doctrine:3.2.x Aug 24, 2021
@morozov morozov deleted the code-cleanup branch August 24, 2021 21:27
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants