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

Restored migration template method return types #2160

Merged
merged 1 commit into from
Dec 31, 2022

Conversation

Bilge
Copy link
Contributor

@Bilge Bilge commented Dec 31, 2022

I previously added this in #1819 but it was (inadvertently?) reverted in #1995, which claimed to be adding type hints, but actually removed them, at least in migration templates, as we can see in this commit. That commit purports to be fixing tests, but as we can see from this PR, no tests (at least at the present time) are broken by adding such types.

Since Phinx currently requires PHP 7.2, and void functions were added in PHP 7.1, there doesn't seem to be a compelling reason to not to add these types.

@dereuromark dereuromark merged commit 852c4b1 into cakephp:0.x Dec 31, 2022
@Bilge Bilge deleted the migration-return-types branch January 1, 2023 02:05
@Bilge
Copy link
Contributor Author

Bilge commented Jan 1, 2023

Any chance we can get a 🏷️ tag for this?

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