Files
development/vendor/microsoft/tolerant-php-parser/src/SkippedToken.php
Clemens Schwaighofer f94b350ba4 Install phan/phpstan local
2023-02-08 12:02:18 +09:00

24 lines
833 B
PHP

<?php
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace Microsoft\PhpParser;
use ReturnTypeWillChange;
class SkippedToken extends Token {
public function __construct(Token $token) {
parent::__construct($token->kind, $token->fullStart, $token->start, $token->length);
}
#[ReturnTypeWillChange]
public function jsonSerialize() {
return array_merge(
["error" => $this->getTokenKindNameFromValue(TokenKind::SkippedToken)],
parent::jsonSerialize()
);
}
}