resetDeprecationGroups example

/** * @var DeprecationGroup[] */
    private $deprecationGroups = [];

    private static $isRegistered = false;
    private static $errorHandler;

    public function __construct()
    {
        $this->resetDeprecationGroups();
    }

    /** * Registers and configures the deprecation handler. * * The mode is a query string with options: * - "disabled" to enable/disable the deprecation handler * - "verbose" to enable/disable displaying the deprecation report * - "quiet" to disable displaying the deprecation report only for some groups (i.e. quiet[]=other) * - "max" to configure the number of deprecations to allow before exiting with a non-zero * status code; it's an array with keys "total", "self", "direct" and "indirect" * * The default mode is "max[total]=0&verbose=1". * * The mode can alternatively be "/some-regexp/" to stop the test suite whenever * a deprecation message matches the given regular expression. * * @param int|string|false $mode The reporting mode, defaults to not allowing any deprecations */
Home | Imprint | This part of the site doesn't use cookies.