add type check
PathInterface to AbsolutePath
use preg_replace
use preg_replace
document block fixed