CoreFiles by mySites.guru
UndefinedFunctionError.php33 lines, 897 bytes, from Joomla_4.4.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.4.0-alpha2
md5
be7049d00e09350d497a976101e9a7a0
sha1
e3260cb65b057dfa5bf8f24289728473b2075c47
sha256
b448dd7b2513242631b946459c2f440b0babdee5560b0a06731fd199da1f8109
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\ErrorHandler\Error;

class UndefinedFunctionError extends \Error
{
    /**
     * {@inheritdoc}
     */
    public function __construct(string $message, \Throwable $previous)
    {
        parent::__construct($message, $previous->getCode(), $previous->getPrevious());

        foreach ([
            'file' => $previous->getFile(),
            'line' => $previous->getLine(),
            'trace' => $previous->getTrace(),
        ] as $property => $value) {
            $refl = new \ReflectionProperty(\Error::class, $property);
            $refl->setAccessible(true);
            $refl->setValue($this, $value);
        }
    }
}

The same content is in 131 releases, Joomla 4.0.0-beta to 4.4.14. See them all, or every version of this file.