Skip to content

Added instanceof check to prevent root package from being installed#21

Merged
Potherca merged 3 commits intoPHPCSStandards:masterfrom
codenamephp:master
Mar 16, 2017
Merged

Added instanceof check to prevent root package from being installed#21
Potherca merged 3 commits intoPHPCSStandards:masterfrom
codenamephp:master

Conversation

@bastianschwarz
Copy link
Copy Markdown
Contributor

Proposed Changes

The root package needs a different install path (since it's not really installed, it's already there) so right now the install fails. The instance of check prevents the package from being installed if the package has the RootPackageInterface.

Related Issues

Fix for #19

I had some spare minutes and wanted to continue my sniff so I just fixed it online on Github so I won't mess up the formatting.

Ignoring root package when installing so the plugin will work again when installed into a code sniff package
Documentation
Copy link
Copy Markdown
Member

@Potherca Potherca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

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.

3 participants