X

Create New Item

File Folder

X

Search Results

File "PhpStackFrameArgumentsFixer.php"

Full path: /home/orbitecv/orbite-school.orbit.et/vendor/spatie/flare-client-php/src/Support/PhpStackFrameArgumentsFixer.php
File size: 517 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Edit   Back

<?php

namespace Spatie\FlareClient\Support;

class PhpStackFrameArgumentsFixer
{
    public function enable(): void
    {
        if (! $this->isCurrentlyIgnoringStackFrameArguments()) {
            return;
        }

        ini_set('zend.exception_ignore_args', '0');
    }

    protected function isCurrentlyIgnoringStackFrameArguments(): bool
    {
        return match (ini_get('zend.exception_ignore_args')) {
            '1' => true,
            '0' => false,
            default => false,
        };
    }
}