: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
require_once __DIR__ . '/wfFileUtils.php';
require_once __DIR__ . '/wfScanFileProperties.php';
private $realPath = null;
private $wordpressPath = null;
public function __construct($realPath, $wordpressPath) {
$this->realPath = $realPath;
$this->wordpressPath = $wordpressPath;
public function getRealPath() {
public function getWordpressPath() {
return $this->wordpressPath;
public function getDisplayPath() {
if (wfFileUtils::matchPaths($this->realPath, $this->wordpressPath)) {
return '~/' . $this->getWordpressPath();
public function createChild($childPath) {
wfFileUtils::realPath(wfFileUtils::joinPaths($this->realPath, $childPath)),
wfFileUtils::joinPaths($this->wordpressPath, $childPath)
public function __toString() {
return $this->getRealPath();
public function initializeProperties() {
return new wfScanFileProperties($this->realPath, $this->wordpressPath);