🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:UnknownOptionException.php
<?php declare(strict_types=1); /* * This file is part of sebastian/cli-parser. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\CliParser; use function implode; use function sprintf; use RuntimeException; final class UnknownOptionException extends RuntimeException implements Exception { /** * @param array<string> $similarOptions */ public function __construct(string $option, array $similarOptions) { $message = sprintf( 'Unknown option "%s"', $option, ); if ($similarOptions !== []) { $message = sprintf( 'Unknown option "%s". Most similar options are %s', $option, implode(', ', $similarOptions), ); } parent::__construct($message); } }
Save Changes
Cancel
Create New File
Create New Folder