Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7451656
InvalidTagValueNode.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
InvalidTagValueNode.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
PHPStan\PhpDocParser\Ast\PhpDoc
;
use
PHPStan\PhpDocParser\Ast\NodeAttributes
;
use
PHPStan\PhpDocParser\Parser\ParserException
;
use
function
sprintf
;
use
function
trigger_error
;
use
const
E_USER_WARNING
;
/**
* @property ParserException $exception
*/
class
InvalidTagValueNode
implements
PhpDocTagValueNode
{
use
NodeAttributes
;
/** @var string (may be empty) */
public
string
$value
;
/** @var mixed[] */
private
array
$exceptionArgs
;
public
function
__construct
(
string
$value
,
ParserException
$exception
)
{
$this
->
value
=
$value
;
$this
->
exceptionArgs
=
[
$exception
->
getCurrentTokenValue
(),
$exception
->
getCurrentTokenType
(),
$exception
->
getCurrentOffset
(),
$exception
->
getExpectedTokenType
(),
$exception
->
getExpectedTokenValue
(),
$exception
->
getCurrentTokenLine
(),
];
}
public
function
__get
(
string
$name
):
?
ParserException
{
if
(
$name
!==
'exception'
)
{
trigger_error
(
sprintf
(
'Undefined property: %s::$%s'
,
self
::
class
,
$name
),
E_USER_WARNING
);
return
null
;
}
return
new
ParserException
(...
$this
->
exceptionArgs
);
}
public
function
__toString
():
string
{
return
$this
->
value
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 21:34 (2 d, 3 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b8/ca/b97cfb718e3bd5cccf585a0f2249
Default Alt Text
InvalidTagValueNode.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment