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

Support method visibility change in classes/traits #87

Open
tomzx opened this issue May 14, 2016 · 1 comment
Open

Support method visibility change in classes/traits #87

tomzx opened this issue May 14, 2016 · 1 comment

Comments

@tomzx
Copy link
Owner

tomzx commented May 14, 2016

No description provided.

@tomzx tomzx added this to the Candidate for next Minor milestone May 14, 2016
@tomzx tomzx added the advanced label Feb 24, 2018
@larsroettig
Copy link

larsroettig commented Aug 7, 2019

Code before

<?php
namespace Test\Vcs;

/**
 * @api
 */
class TestClass
{
    protected $protectedProperty;
    public $publicProperty;
    private $privateProperty;

    /**
     * @param array $methodParam
     */
    public function testMethod(array $methodParam)
    {
    }
}

Testcase after Commit:

namespace Test\Vcs;

/**
 * @api
 */
class TestClass
{
    private $protectedProperty;
    private $publicProperty;
    private $privateProperty;

    /**
     * @param array $methodParam
     */
    private function testMethod(array $methodParam)
    {
    }
}

There should be a check for methods and properties that getting private.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants