: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
public function __construct($file, $included = false) {
$this->included = $included;
public function getKey() {
return $this->file->getRealPath();
public function setIncluded($included = true) {
$this->included = $included;
public function isIncluded() {
public function getFile() {
public function addTo(&$entrypoints) {
if (array_key_exists($key, $entrypoints)) {
$entrypoints[$key]->setIncluded();
$entrypoints[$key] = $this;
public static function getScannedSkippedFiles($entrypoints) {
foreach ($entrypoints as $entrypoint) {
if ($entrypoint->isIncluded()) {
$scanned[] = $entrypoint->getFile();
$skipped[] = $entrypoint->getFile();