src/Standards/BestIt/CodeSniffer/AbstractFileDecorator.php
private function takeProperties(File $baseFile): void
    {
        $baseProps = get_object_vars($baseFile);

        array_walk($baseProps, function ($value, $key) {
            $this->$key = $value;
        });
    }
private function takeProperties(File $baseFile): void
    {
        $baseProps = get_object_vars($baseFile);

        array_walk($baseProps, function ($value, $key) {
            $this->$key = $value;
        });
    }
private function takeProperties ( File $ baseFile ) : void { $ baseProps = get_object_vars ( $ baseFile ) ; array_walk ( $ baseProps , function ( $ value , $ key ) { $ this -> $ key = $ value ; } ) ; }
We need to clone the properties of the base file to this. A magic getter on inherited props does not work.

@param File $baseFile

@return void
We need to clone the properties of the base file to this . A magic getter on inherited props does not work .