Skip to content

Remove redundant variable#6326

Merged
derrabus merged 2 commits intodoctrine:4.1.xfrom
michalbundyra:patch-1
Jun 4, 2024
Merged

Remove redundant variable#6326
derrabus merged 2 commits intodoctrine:4.1.xfrom
michalbundyra:patch-1

Conversation

@michalbundyra
Copy link
Copy Markdown
Member

@michalbundyra michalbundyra commented Mar 5, 2024

Q A
Type improvement
Fixed issues

Summary

Just removing unused variable and redundant array_merge. As I see Psalm fails here, and not really sure how to fix it, adding array_values probably would solve the issue, but I guess this is not what we want there?

Also updated return type on _getCreateTableSQL method, to fix the Psalm issue.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2024

There hasn't been any activity on this pull request in the past 90 days, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.
If you want to continue working on it, please leave a comment.

@github-actions github-actions Bot added the Stale label Jun 4, 2024
@michalbundyra
Copy link
Copy Markdown
Member Author

Rebased and Psalm issue solved. It's a very minor improvement and it's ready to go whenever you have a sec. Thanks 🙏

@greg0ire greg0ire added Improvement and removed Stale labels Jun 4, 2024
@greg0ire greg0ire changed the base branch from 4.0.x to 4.1.x June 4, 2024 08:03
@greg0ire
Copy link
Copy Markdown
Member

greg0ire commented Jun 4, 2024

Retargeted to 4.1.x since it's an improvement.

@derrabus derrabus changed the title QA: Remove redundant variable Remove redundant variable Jun 4, 2024
@derrabus derrabus added this to the 4.1.0 milestone Jun 4, 2024
@derrabus derrabus merged commit 754e3ee into doctrine:4.1.x Jun 4, 2024
@michalbundyra michalbundyra deleted the patch-1 branch June 4, 2024 14:04
derrabus added a commit to derrabus/dbal that referenced this pull request Jun 19, 2024
* 4.1.x: (25 commits)
  Simplify signature of fetchTableOptionsByTable
  Add MariaDb1010Platform for fetchTableOptionsByTable
  PHPUnit 10.5.21 (doctrine#6447)
  Move schema split for SQLite CREATE INDEX only (doctrine#6352)
  PHPStan 1.11.5 (doctrine#6446)
  Default to distinct union queries (doctrine#6439)
  Revert "Merge pull request doctrine#6413 from achterin/bugfix/foreign_key_name_change_detection"
  Add `QueryBuilder` support for `UNION` clause (doctrine#6369)
  CI: Update MariaDB versions (doctrine#6426)
  CI MariaDB: add 11.4, remove 11.0 (doctrine#6432)
  Display warnings when running PHPUnit in CI (doctrine#6431)
  Fix typo in the portability documentation (doctrine#6430)
  Fix MariaDB fetching of default table character-set (doctrine#6361) (doctrine#6425)
  Fix the portability documentation (doctrine#6429)
  Update tests/Platforms/AbstractPlatformTestCase.php
  Update tests/Platforms/AbstractPlatformTestCase.php
  add test
  Fix: Skip type comparison if disableTypeComments is true
  Remove redundant variable (doctrine#6326)
  Fix test names to reflect their actual purpose
  ...
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 5, 2025
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.

3 participants