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

Develop data and schema patches - apply() method should return $this - required by PatchInterface docblock #271

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Nurgiel
Copy link

@Nurgiel Nurgiel commented May 15, 2024

Purpose of this pull request

PatchInterface requires apply() method to @return $this.

Code Sample provided on https://developer.adobe.com/commerce/php/development/components/declarative-schema/patches/ generates the following error when checked with phpstan:

Method Vendor\Module\Setup\Patch\Data\SomePatch::apply() should return $this, but return statement is missing.

Affected pages

Links to Magento Open Source code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Needs Review
Development

Successfully merging this pull request may close these issues.

1 participant