Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented May 22, 2020

As the Ming extension contains (contained) classes and there was no RemovedClasses sniff in place yet, this PR includes introducing that sniff.

RemovedExtensions: PHP 5.3 Ming

Add all constants and functions from the extension to the respective RemovedConstants and RemovedFunctions sniffs.

Ref: https://www.php.net/manual/en/book.ming.php

Related to #1022

New PHPCompatibility.Classes.RemovedClasses sniff

Initial implementation includes removed classes from the PHP 5.3 removed Ming extension.

Note: This sniff currently mirrors the logic in the NewClasses sniff.
Use of PHPCSUtils and the upcoming RemovedExtensions trait will be implemented separately.

jrfnl added 2 commits May 22, 2020 16:34
Add all constants and functions from the extension to the respective `RemovedConstants` and `RemovedFunctions` sniffs.

Ref: https://www.php.net/manual/en/book.ming.php

Related to 1022
Initial implementation includes removed classes from the PHP 5.3 removed Ming extension.

Note: This sniff currently mirrors the logic in the `NewClasses` sniff.
Use of PHPCSUtils and the upcoming `RemovedExtensions` trait will be implemented separately.
@wimg wimg merged commit 0e84a52 into develop May 26, 2020
@wimg wimg deleted the feature/1022-removed-extension-ming branch May 26, 2020 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants