repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/groupUsePositions/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/groupUsePositions/000.php | <?php
use Foo\Bar\{Baz};
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/groupUseTrailingComma/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/groupUseTrailingComma/000.php | <?php
use A\{
B,
};
use function A\{
b,
};
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/invalidName/001.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/invalidName/001.php | <?php use B as PARENT;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/invalidName/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/invalidName/000.php | <?php use A as self;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/groupUse/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/groupUse/000.php | <?php
use A\{B};
use A\{B\C, D};
use \A\B\{C\D, E};
use A\B\{C\D, function b\c, const D};
use function A\{b\c, d};
use const \A\{B\C, D};
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/nested/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/nested/000.php | <?php
namespace A
{
namespace B
{
}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/braced/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/braced/000.php | <?php
namespace Foo\Bar
{
foo;
}
namespace
{
bar;
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/notBraced/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/notBraced/000.php | <?php
namespace Foo\Bar;
foo;
namespace Bar;
bar;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/alias/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/alias/000.php | <?php
use A\B;
use C\D as E;
use F\G as H, J;
// evil alias notation - Do Not Use!
use \A;
use \A as B;
// function and constant aliases
use function foo\bar;
use function foo\bar as baz;
use const foo\BAR;
use const foo\BAR as BAZ;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/commentAfterNamespace/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/commentAfterNamespace/000.php | <?php
namespace Foo
{
}
// Comment
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/mix/001.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/mix/001.php | <?php
namespace A
{
echo 1;
}
echo 2;
namespace B;
echo 3;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/mix/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/mix/000.php | <?php
namespace A;
echo 1;
namespace B
{
echo 2;
}
echo 3;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/nsAfterHashbang/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/nsAfterHashbang/000.php | #!/usr/bin/env php
<?php
namespace A;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/name/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/name/000.php | <?php
A;
A\B;
\A\B;
namespace\A\B;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/outsideStmtInvalid/001.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/outsideStmtInvalid/001.php | <?php
namespace A
{
}
echo 1;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/outsideStmtInvalid/002.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/outsideStmtInvalid/002.php | <?php
namespace A
{
}
declare(ticks=1);
foo();
namespace B
{
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/outsideStmtInvalid/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/namespace/outsideStmtInvalid/000.php | <?php
echo 1;
echo 2;
namespace A;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/switch/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/switch/000.php | <?php
switch ($a) {
case 0:
break;
// Comment
case 1;
default:
}
// alternative syntax
switch ($a):
endswitch;
// leading semicolon
switch ($a) {
;
}
switch ($a):
;
endswitch;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/generator/basic/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/generator/basic/000.php | <?php
function gen()
{
// statements
yield;
yield $value;
yield $key => $value;
// expressions
$data = yield;
$data = (yield $value);
$data = (yield $key => $value);
// yield in language constructs with their own parentheses
if (yield $foo);
elseif (yield $foo);
if (yi... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/generator/yieldUnaryPrecedence/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/generator/yieldUnaryPrecedence/000.php | <?php
function gen()
{
yield +1;
yield -1;
yield * -1;
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/generator/yieldPrecedence/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/generator/yieldPrecedence/000.php | <?php
function gen()
{
yield 'a' . 'b';
yield 'a' or die;
yield 'k' => 'a' . 'b';
yield 'k' => 'a' or die;
var_dump([yield 'k' => 'a' . 'b']);
yield yield 'k1' => yield 'k2' => 'a' . 'b';
yield yield 'k1' => (yield 'k2') => 'a' . 'b';
var_dump([yield 'k1' => yield 'k2' => 'a' . 'b']);
... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/multiCatch/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/multiCatch/000.php | <?php
try {
$x;
} catch (X | Y $e1) {
$y;
} catch (\A | B\C $e2) {
$z;
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/blocklessStatement/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/blocklessStatement/000.php | <?php
if ($a)
$A;
elseif ($b)
$B;
else
$C;
for (;;)
$foo;
foreach ($a as $b)
$AB;
while ($a)
$A;
do
$A;
while ($a);
declare(a='b')
$C;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/tryCatch_without_variable/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/tryCatch_without_variable/000.php | <?php
try {
} catch (Exception) {
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/inlineHTML/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/inlineHTML/000.php | <?php
$a;
?>
B
<?php
$c;
?>
<?php
$d;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/attributes/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/attributes/000.php | <?php
#[
A1,
A2(),
A3(0),
A4(x: 1),
]
function a() {}
#[A5]
class C
{
#[A6]
public function m(
#[A7] $param,
) {}
#[A14]
public $prop;
}
#[A8]
interface I {}
#[A9]
trait T {}
$x = #[A10] function () {};
$y = #[A11] fn() => 0;
$a = #[A12] static function () {};
$b = #[A1... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/tryWithoutCatch/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/tryWithoutCatch/000.php | <?php
try {
foo();
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/newInInitializer/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/newInInitializer/000.php | <?php
const C = new Foo;
function a($x = new Foo)
{
static $y = new Foo;
}
#[Attr(new Foo)]
class Bar
{
const C = new Foo;
public $prop = new Foo;
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/echo/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/echo/000.php | <?php
echo 'Hallo World!';
echo 'Hallo', ' ', 'World', '!';
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/unset/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/unset/000.php | <?php
unset($a);
unset($b, $c);
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/abstract/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/abstract/000.php | <?php
abstract class A
{
public function a() {}
abstract public function b();
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/readonlyAsClassName/001.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/readonlyAsClassName/001.php | <?php
class ReadOnly {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/readonlyAsClassName/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/readonlyAsClassName/000.php | <?php
class ReadOnly {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/trait/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/trait/000.php | <?php
trait A
{
public function a() {}
}
class B
{
use C;
use D {
a as protected b;
c as d;
e as private;
}
use E, F, G {
E::a insteadof F, G;
E::b as protected c;
E::d as e;
E::f as private;
}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/constModifiers/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/constModifiers/000.php | <?php
class Foo
{
const A = 1;
public const B = 2;
protected const C = 3;
private const D = 4;
final const E = 5;
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/readonlyMethod/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/readonlyMethod/000.php | <?php class A { readonly function foo() {} }
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/constModifierErrors/001.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/constModifierErrors/001.php | <?php
class A
{
abstract const X = 1;
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/constModifierErrors/002.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/constModifierErrors/002.php | <?php
class A
{
readonly const X = 1;
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/constModifierErrors/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/constModifierErrors/000.php | <?php
class A
{
static const X = 1;
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/interface/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/interface/000.php | <?php
interface A extends C, D
{
public function a();
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/conditional/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/conditional/000.php | <?php
if (true) {
class A {}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/readonly/001.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/readonly/001.php | <?php
final readonly class A {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/readonly/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/readonly/000.php | <?php
readonly class A {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/enum_with_string/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/enum_with_string/000.php | <?php
enum Suit: string
{
case Hearts = 'H';
case Diamonds;
case Clubs = 'C';
case Spades = 'S';
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/asymmetric_visibility/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/asymmetric_visibility/000.php | <?php
class Test
{
protected private(set) $a;
private public(set) $b;
protected(set) $c;
public function __construct(
protected private(set) $d,
private public(set) $e,
protected(set) $f,
) {}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/property_promotion/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/property_promotion/000.php | <?php
class Point
{
public function __construct(
public float $x = 0.0,
protected array $y = [],
private string $z = 'hello',
public readonly int $a = 0,
public $h {
set => $value;
},
public $g = 1 {
get => 2;
},
final ... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/anonymous/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/anonymous/000.php | <?php
new class {
public function test() {}
};
new class extends A implements B, C {};
new class() {
public $foo;
};
new class($a, $b) extends A {
use T;
};
class A
{
public function test()
{
return new class($this) extends A {
const A = 'B';
};
}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/enum/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/enum/000.php | <?php
enum A
{
case class;
}
enum B implements Bar, Baz {}
enum C: int implements Bar
{
case Foo = 1;
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/class_position/001.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/class_position/001.php | <?php
if (1);
trait X {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/class_position/002.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/class_position/002.php | <?php
if (1);
interface X {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/class_position/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/class_position/000.php | <?php
if (1);
class C {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/typedConstants/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/typedConstants/000.php | <?php
class Test
{
const int X = 1;
private const string Y = 'a',
Z = 'b';
const array ARRAY = [];
const Foo|Bar|null FOO = null;
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/staticMethod/004.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/staticMethod/004.php | <?php class A { static function __Destruct() {} }
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/staticMethod/001.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/staticMethod/001.php | <?php class A { static function __destruct() {} }
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/staticMethod/002.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/staticMethod/002.php | <?php class A { static function __clone() {} }
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/staticMethod/003.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/staticMethod/003.php | <?php class A { static function __CONSTRUCT() {} }
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/staticMethod/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/staticMethod/000.php | <?php class A { static function __construct() {} }
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/staticMethod/005.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/staticMethod/005.php | <?php class A { static function __cLoNe() {} }
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/php4Style/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/php4Style/000.php | <?php
class A
{
var $foo;
function bar() {}
static abstract function baz() {}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/staticType/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/staticType/000.php | <?php
class Test
{
public static function create(): static {}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/implicitPublic/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/implicitPublic/000.php | <?php
abstract class A
{
var $a;
static $b;
abstract function c();
final function d() {}
static function e() {}
final static function f() {}
function g() {}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/property_modifiers/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/property_modifiers/000.php | <?php
class Test
{
final public $prop;
abstract protected $prop;
readonly $prop;
private static $prop;
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/propertyTypes/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/propertyTypes/000.php | <?php
class A
{
public string $a;
protected static D $b;
private ?float $c;
readonly static public ?int $d;
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/simple/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/simple/000.php | <?php
class A extends B implements C, D
{
const A = 'B',
C = 'D';
public $a = 'b',
$c = 'd';
protected $e;
private $f;
public function a() {}
public static function b($a) {}
final public function c(): B {}
protected function d() {}
private function e() {}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/006.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/006.php | <?php class A implements self {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/013.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/013.php | <?php interface A extends PARENT {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/004.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/004.php | <?php class A extends PARENT {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/001.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/001.php | <?php class PARENT {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/009.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/009.php | <?php interface self {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/012.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/012.php | <?php interface A extends self {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/014.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/014.php | <?php interface A extends static {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/007.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/007.php | <?php class A implements PARENT {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/010.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/010.php | <?php interface PARENT {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/003.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/003.php | <?php class A extends self {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/008.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/008.php | <?php class A implements static {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/000.php | <?php class self {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/005.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/name/005.php | <?php class A extends static {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/property_hooks/001.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/property_hooks/001.php | <?php
class Test
{
public $prop {}
public function __construct(
public $prop2 {}
) {}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/property_hooks/002.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/property_hooks/002.php | <?php
class Test
{
public $prop {
get() => 42;
}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/property_hooks/003.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/property_hooks/003.php | <?php
class Test
{
public $prop {
FOO => bar;
}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/property_hooks/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/property_hooks/000.php | <?php
class Test
{
public $prop {
get {
return 42;
}
set {
echo $value;
}
}
private $prop2 {
get => 42;
set => $value;
}
abstract $prop3 { &get; set; }
public $prop4 {
final get {
return 42;
}... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/readonlyAnonyous/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/readonlyAnonyous/000.php | <?php
new readonly class {};
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/final/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/class/final/000.php | <?php
final class A {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/controlFlow/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/controlFlow/000.php | <?php
break;
break 2;
continue;
continue 2;
return;
return $a;
throw $e;
label:
goto label;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/declare/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/declare/000.php | <?php
declare(X='Y');
declare(A='B',C='D') {
echo 'foo';
}
declare(A='B',C='D'):
enddeclare;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/nullableTypes/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/nullableTypes/000.php | <?php
function test(?Foo $bar, ?string $foo): ?Baz {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/returnTypes/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/returnTypes/000.php | <?php
function test1() {}
function test2(): array {}
function test3(): callable {}
function test4(): Foo\Bar {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/readonlyFunction/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/readonlyFunction/000.php | <?php
function readonly() {}
readonly();
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/variadicDefaultValue/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/variadicDefaultValue/000.php | <?php
function foo(...$foo = []) {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/disjointNormalFormTypes/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/disjointNormalFormTypes/000.php | <?php
class Test
{
public (A&B)|(X&Y) $prop;
public readonly (A&B)|C $prop2;
}
function test((A&B)|(X&Y) $a): (A&B)|(X&Y) {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/intersectionTypes/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/intersectionTypes/000.php | <?php
class Test
{
public A&B $prop;
}
function test(A&B $a): A&B {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/variadic/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/variadic/000.php | <?php
function test($a, ...$b) {}
function test($a, &...$b) {}
function test($a, Type ...$b) {}
function test($a, Type &...$b) {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/neverType/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/neverType/000.php | <?php
function test(): never {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/byRef/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/byRef/000.php | <?php
function a(&$b) {}
function &a($b) {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/parameters_trailing_comma/001.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/parameters_trailing_comma/001.php | <?php
class Foo
{
function __construct(
$name,
$value,
) {}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/parameters_trailing_comma/002.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/parameters_trailing_comma/002.php | <?php
fn(
$foo,
) => $bar;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/parameters_trailing_comma/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/parameters_trailing_comma/000.php | <?php
function foo(
$bar,
) {}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/conditional/000.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/conditional/000.php | <?php
if (true) {
function A() {}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/typeVersions/004.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/typeVersions/004.php | <?php
function test(
bool $a1,
int $a2,
float $a3,
string $a4, // PHP 7.0
iterable $a5, // PHP 7.1
object $a6, // PHP 7.2
mixed $a7, // PHP 8.0
null $a8, // PHP 8.0
false $a9, // PHP 8.0
): void {} // PHP 7.1
function test2(): never {} // PHP 8.1
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/typeVersions/001.php | tests/fixtures/Formatter/out/04-psr12/3rdparty/php-parser/parser/stmt/function/typeVersions/001.php | <?php
function test(
bool $a1,
int $a2,
float $a3,
string $a4, // PHP 7.0
iterable $a5, // PHP 7.1
object $a6, // PHP 7.2
mixed $a7, // PHP 8.0
null $a8, // PHP 8.0
false $a9, // PHP 8.0
): void {} // PHP 7.1
function test2(): never {} // PHP 8.1
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.