This appears to be a regression, since there's a specific issue from even earlier requesting that it exit 0 when there are no files to scan: https://github.com/sebastianbergmann/phploc/pull/175 This was merged, and then seemingly reverted in the 7.0 release.
When no files are found to scan, I'd prefer phploc to exit 0 instead of 1. It used to exit 0, and exiting 1 is a breaking change in the 7.0 release that should have been included in the release notes (introduced by https://github.com/sebastianbergmann/phploc/commit/438fda0e2a761805de84b9ad4c682f53c80ad03f)
This appears to be a regression, since there's a specific issue from even earlier requesting that it exit 0 when there are no files to scan: https://github.com/sebastianbergmann/phploc/pull/175 This was merged, and then seemingly reverted in the 7.0 release.