src/Standards/BestIt/Sniffs/DocTags/PackageTagSniff.php
private function fixWrongPackage(string $currentNamespace): void
    {
        $this->file->getFixer()->replaceToken(
            TokenHelper::findNext($this->file->getBaseFile(), [T_DOC_COMMENT_STRING], $this->stackPos),
            $currentNamespace
        );
    }
private function fixWrongPackage(string $currentNamespace): void
    {
        $this->file->getFixer()->replaceToken(
            TokenHelper::findNext($this->file->getBaseFile(), [T_DOC_COMMENT_STRING], $this->stackPos),
            $currentNamespace
        );
    }
private function fixWrongPackage ( string $ currentNamespace ) : void { $ this -> file -> getFixer ( ) -> replaceToken ( TokenHelper :: findNext ( $ this -> file -> getBaseFile ( ) , [ T_DOC_COMMENT_STRING ] , $ this -> stackPos ) , $ currentNamespace ) ; }
Fixes the wrong package and replaces it with the correct namespace.

@param string $currentNamespace

@return void
Fixes the wrong package and replaces it with the correct namespace .