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

UnusedUses MismatchingCaseSensitivity on valid code #21

Closed
pepakriz opened this issue Mar 15, 2016 · 1 comment
Closed

UnusedUses MismatchingCaseSensitivity on valid code #21

pepakriz opened this issue Mar 15, 2016 · 1 comment
Labels

Comments

@pepakriz
Copy link
Contributor

Example:

<?php declare(strict_types = 1);

namespace Hele\Sms;

use Nette\Http\Url;

class Test
{

    const URL = 'https://foo.com';  // line 10

    public function sendMessage()
    {
        $url = new Url(self::URL);
        $url->getAbsoluteUrl();
    }

}

lint output:

----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 10 | ERROR | Case of reference name URL and use statement Url do not
    |       | match
    |       | (SlevomatCodingStandard.Namespaces.UnusedUses.MismatchingCaseSensitivity)
----------------------------------------------------------------------
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants