PHP 8.2.30
Preview: SuggestCorrectVariableNameSolution.php Size: 1001 B
/proc/thread-self/root/home/byroehnu/easetack.com/vendor/spatie/error-solutions/src/Solutions/SuggestCorrectVariableNameSolution.php

<?php

namespace Spatie\ErrorSolutions\Solutions;

use Spatie\ErrorSolutions\Contracts\Solution;
use Spatie\ErrorSolutions\Solutions\Concerns\IsProvidedByFlare;

class SuggestCorrectVariableNameSolution implements Solution
{
    use IsProvidedByFlare;

    protected ?string $variableName;

    protected ?string $viewFile;

    protected ?string $suggested;

    public function __construct(?string $variableName = null, ?string $viewFile = null, ?string $suggested = null)
    {
        $this->variableName = $variableName;

        $this->viewFile = $viewFile;

        $this->suggested = $suggested;
    }

    public function getSolutionTitle(): string
    {
        return 'Possible typo $'.$this->variableName;
    }

    public function getDocumentationLinks(): array
    {
        return [];
    }

    public function getSolutionDescription(): string
    {
        return "Did you mean `$$this->suggested`?";
    }

    public function isRunnable(): bool
    {
        return false;
    }
}

Directory Contents

Dirs: 3 × Files: 3

Name Size Perms Modified Actions
Concerns DIR
- drwxrwxrwx 2025-05-16 16:14:51
Edit Download
Laravel DIR
- drwxrwxrwx 2025-05-16 16:14:51
Edit Download
OpenAi DIR
- drwxrwxrwx 2025-05-16 16:14:51
Edit Download
900 B lrw-rw-rw- 2025-02-14 12:29:50
Edit Download
1001 B lrw-rw-rw- 2025-02-14 12:29:50
Edit Download
712 B lrw-rw-rw- 2025-02-14 12:29:50
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).