CoreFiles by mySites.guru
UndefinedMethodError.php29 lines, 818 bytes, from Joomla_5.4.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 5.4.0-alpha2
md5
7cfd2e35479de452ffafc8345e2c0124
sha1
c9002bd35752e49472b59ccc4b5b613967ac42ee
sha256
0ac372c9548c9836c4a1a679f9f28d50757e44a16f7edf4ac4d4dbec476e55e8
<?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 UndefinedMethodError extends \Error
{
    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->setValue($this, $value);
        }
    }
}

The same content is in 155 releases, Joomla 5.0.0-alpha1 to 6.2.1-rc1. See them all, or every version of this file.