[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/symfony/error-handler/Error/ -> UndefinedFunctionError.php (source)

   1  <?php
   2  
   3  /*
   4   * This file is part of the Symfony package.
   5   *
   6   * (c) Fabien Potencier <[email protected]>
   7   *
   8   * For the full copyright and license information, please view the LICENSE
   9   * file that was distributed with this source code.
  10   */
  11  
  12  namespace Symfony\Component\ErrorHandler\Error;
  13  
  14  class UndefinedFunctionError extends \Error
  15  {
  16      /**
  17       * {@inheritdoc}
  18       */
  19      public function __construct(string $message, \Throwable $previous)
  20      {
  21          parent::__construct($message, $previous->getCode(), $previous->getPrevious());
  22  
  23          foreach ([
  24              'file' => $previous->getFile(),
  25              'line' => $previous->getLine(),
  26              'trace' => $previous->getTrace(),
  27          ] as $property => $value) {
  28              $refl = new \ReflectionProperty(\Error::class, $property);
  29              $refl->setAccessible(true);
  30              $refl->setValue($this, $value);
  31          }
  32      }
  33  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer