tomzx / php-semver-checker

Compares two source sets and determines the appropriate semantic versioning to apply.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reporter outputs an empty location if file was removed

tomzx opened this issue · comments

This is due to realpath($missing_path) returning the current working directory, which is then stripped if we have set the reporter not to output full paths.

$fullPath = realpath($operation->getLocation());
$location = str_replace($this->cwd . DIRECTORY_SEPARATOR, '', $fullPath);