Skip to content

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