Install phan/phpstan local
This commit is contained in:
23
vendor/microsoft/tolerant-php-parser/src/MissingToken.php
vendored
Normal file
23
vendor/microsoft/tolerant-php-parser/src/MissingToken.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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 MissingToken extends Token {
|
||||
public function __construct(int $kind, int $fullStart) {
|
||||
parent::__construct($kind, $fullStart, $fullStart, 0);
|
||||
}
|
||||
|
||||
#[ReturnTypeWillChange]
|
||||
public function jsonSerialize() {
|
||||
return array_merge(
|
||||
["error" => $this->getTokenKindNameFromValue(TokenKind::MissingToken)],
|
||||
parent::jsonSerialize()
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user