Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5970502
SyntaxError.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
872 B
Referenced Files
None
Subscribers
None
SyntaxError.php
View Options
<?php
namespace
Wikimedia\WikiPEG
;
class
SyntaxError
extends
\Exception
implements
\JsonSerializable
{
public
$expected
;
public
$found
;
public
$location
;
/**
* @param string $message
* @param Expectation[] $expected
* @param string|null $found
* @param LocationRange $location
*/
public
function
__construct
(
string
$message
,
array
$expected
,
$found
,
LocationRange
$location
)
{
parent
::
__construct
(
$message
);
$this
->
expected
=
$expected
;
$this
->
found
=
$found
;
$this
->
location
=
$location
;
}
/**
* JSON serialization similar to the JavaScript SyntaxError, for testing
* @return array
*/
#[\ReturnTypeWillChange]
public
function
jsonSerialize
():
array
{
return
[
'name'
=>
'SyntaxError'
,
'message'
=>
$this
->
message
,
'expected'
=>
$this
->
expected
,
'found'
=>
$this
->
found
,
'location'
=>
$this
->
location
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 14:31 (8 h, 57 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
99/82/159465ac7f41ff48159f2586f5ff
Default Alt Text
SyntaxError.php (872 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment