Skip to content

Conversation

@lutdev
Copy link

@lutdev lutdev commented Dec 10, 2025

Fix for #2386

*
* @param string $tableName Table name
* @return \Phinx\Db\Table\Column[]
* @return list<\Phinx\Db\Table\Column>
Copy link
Member

@dereuromark dereuromark Dec 10, 2025

Choose a reason for hiding this comment

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

The former also means non assoc. But it doesnt have the downsides of list<>.
Usually list is too strict as in it has to be the perfect numerical order, which is often kind of pointless.
As return type it is probably fine.

Copy link
Author

Choose a reason for hiding this comment

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

@dereuromark

Usually list is too strict as in it has to be the perfect numerical order

yes) that's why I decided to change it. To be sure that method returns strict list.

@dereuromark
Copy link
Member

This probably has to wait until next major.
A bit too bc breaking for a bugfix

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