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

take advantage of phpdoc comment #67

Open
the-liquid-metal opened this issue May 10, 2020 · 1 comment
Open

take advantage of phpdoc comment #67

the-liquid-metal opened this issue May 10, 2020 · 1 comment

Comments

@the-liquid-metal
Copy link

If i am not wrong, YAK Pro does not have mechanism/options to exclude specific code from being processed whatever the the config is set. For example, i have $conf->obfuscate_variable_name = true;, but i want all vars inside MyClass::myMethod() to be excluded. There is no way to do that.

If YAK Pro can takes advantage of phpdoc comment, may be this problem can be solved (and potentially others).

class MyClass {
    /**
     * @obfuscate_variable_name false
    */
    public function myMethod() {
        // ...
    }
}

or

class MyClass {
    /**
     * @no_obfuscate_variable_name
    */
    public function myMethod() {
        // ...
    }
}
@Stevemoretz
Copy link

This is really a smart idea.

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

No branches or pull requests

2 participants