cakephp / phinx

PHP Database Migrations for Everyone
https://phinx.org
MIT License
4.46k stars 889 forks source link

Add declare strict_types to seed template #2220

Closed MasterOdin closed 1 year ago

MasterOdin commented 1 year ago

PR adds a declare(strict_types=1); to the seed template, which brings it inline with how our migrations template file works, where declare was added in https://github.com/cakephp/phinx/pull/1819. We should be highly forcing people to have correct types usage when interacting with their database to prevent any sort of unexpected data loss/corruption, such as talked about in the linked PR.