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

Migration is missing PHP return types #18

Open
smxsm opened this issue Mar 24, 2022 · 0 comments
Open

Migration is missing PHP return types #18

smxsm opened this issue Mar 24, 2022 · 0 comments

Comments

@smxsm
Copy link

smxsm commented Mar 24, 2022

PHP Fatal error: Declaration of Endereco\Oxid6Client\Migrations\Version202
10614111035::preUp(Doctrine\DBAL\Schema\Schema $schema) must be compatible
with Doctrine\Migrations\AbstractMigration::preUp(Doctrine\DBAL\Schema\Sche
ma $schema): void in source/modules/endereco/endereco-oxid6-client/migration/data/Version
20210614111035.php on line 12

// is
public function preUp(Schema $schema)
// should be:
public function preUp(Schema $schema): void

same goes for up() and down() functions, ": void" must be added to get rid of the errors.

public function up(Schema $schema): void
public function down(Schema $schema): void
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

No branches or pull requests

1 participant