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

♻️ default to null for type of column in addColumn #2236

Merged

Conversation

gaydamakha
Copy link
Contributor

As accepting null for $type parameter was rollbacked in #2224, I think it is more consistent to default to null value after its removal in #2218. Passing Column object in first argument makes the $type parameter useless. So, the PR simplifies a bit the adding of a new column (modified in the unit test).

@othercorey
Copy link
Member

Leave this up to @ndm2

@ndm2
Copy link
Contributor

ndm2 commented Nov 5, 2023

Makes sense to me, no need to force passing a value that isn't going to be used.

@dereuromark dereuromark merged commit a86db7c into cakephp:0.x Nov 5, 2023
12 checks passed
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.

4 participants