Skip to content

Helper::setConfigData(): PHPCS 4.x compatibility#137

Merged
jrfnl merged 1 commit into
developfrom
feature/fix-phpcs-4-compat-configsetting
May 14, 2020
Merged

Helper::setConfigData(): PHPCS 4.x compatibility#137
jrfnl merged 1 commit into
developfrom
feature/fix-phpcs-4-compat-configsetting

Conversation

@jrfnl
Copy link
Copy Markdown
Member

@jrfnl jrfnl commented May 14, 2020

As of PHPCS 4.x, the PHP_CodeSniffer\Config::setConfigData() method is no longer static.

Ref: squizlabs/PHP_CodeSniffer@10a89a2

This commit adds a new $config parameter to the Helper::setConfigData() method which will be a required parameter for PHPCS 4.x.

Includes adjusted unit tests.

As of PHPCS 4.x, the `PHP_CodeSniffer\Config::setConfigData()` method is no longer static.

Ref: squizlabs/PHP_CodeSniffer@10a89a2

This commit adds a new `$config` parameter to the `Helper::setConfigData()` method which will be a required parameter for PHPCS 4.x.

Includes adjusted unit tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant