Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

   1  <?php
   2  
   3  namespace PhpOffice\PhpSpreadsheet\Calculation;
   4  
   5  use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
   6  
   7  class Exception extends PhpSpreadsheetException
   8  {
   9      public const CALCULATION_ENGINE_PUSH_TO_STACK = 1;
  10  
  11      /**
  12       * Error handler callback.
  13       *
  14       * @param mixed $code
  15       * @param mixed $string
  16       * @param mixed $file
  17       * @param mixed $line
  18       * @param mixed $context
  19       */
  20      public static function errorHandlerCallback($code, $string, $file, $line, /** @scrutinizer ignore-unused */ $context): void
  21      {
  22          $e = new self($string, $code);
  23          $e->line = $line;
  24          $e->file = $file;
  25  
  26          throw $e;
  27      }
  28  }