Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable classmap authoritative autoloading #1046

Merged
merged 15 commits into from
Dec 6, 2024
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@
},
"bin": [
"bin/php-parse"
]
],
"config": {
"classmap-authoritative": true
ghostwriter marked this conversation as resolved.
Show resolved Hide resolved
}
}
6 changes: 6 additions & 0 deletions lib/PhpParser/Node/Expr/ArrayItem.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<?php declare(strict_types=1);

namespace PhpParser\Node\Expr;

require __DIR__ . '/../ArrayItem.php';

if (false) {

Check failure on line 7 in lib/PhpParser/Node/Expr/ArrayItem.php

View workflow job for this annotation

GitHub Actions / PHPStan

If condition is always false.
ghostwriter marked this conversation as resolved.
Show resolved Hide resolved
class ArrayItem extends \PhpParser\Node\ArrayItem {}
}
6 changes: 6 additions & 0 deletions lib/PhpParser/Node/Expr/ClosureUse.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<?php declare(strict_types=1);

namespace PhpParser\Node\Expr;

require __DIR__ . '/../ClosureUse.php';

if (false) {

Check failure on line 7 in lib/PhpParser/Node/Expr/ClosureUse.php

View workflow job for this annotation

GitHub Actions / PHPStan

If condition is always false.
class ClosureUse extends \PhpParser\Node\ClosureUse {}
}
6 changes: 6 additions & 0 deletions lib/PhpParser/Node/Scalar/DNumber.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<?php declare(strict_types=1);

namespace PhpParser\Node\Scalar;

require __DIR__ . '/Float_.php';

if (false) {

Check failure on line 7 in lib/PhpParser/Node/Scalar/DNumber.php

View workflow job for this annotation

GitHub Actions / PHPStan

If condition is always false.
class DNumber extends Float_ {}
}
8 changes: 8 additions & 0 deletions lib/PhpParser/Node/Scalar/Encapsed.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<?php declare(strict_types=1);

namespace PhpParser\Node\Scalar;

use PhpParser\Node\Scalar\InterpolatedString;

require __DIR__ . '/InterpolatedString.php';

if (false) {

Check failure on line 9 in lib/PhpParser/Node/Scalar/Encapsed.php

View workflow job for this annotation

GitHub Actions / PHPStan

If condition is always false.
class Encapsed extends InterpolatedString {}
}
9 changes: 9 additions & 0 deletions lib/PhpParser/Node/Scalar/EncapsedStringPart.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<?php declare(strict_types=1);

namespace PhpParser\Node\Scalar;

use PhpParser\Node\InterpolatedStringPart;

require __DIR__ . '/../InterpolatedStringPart.php';


if (false) {

Check failure on line 10 in lib/PhpParser/Node/Scalar/EncapsedStringPart.php

View workflow job for this annotation

GitHub Actions / PHPStan

If condition is always false.
class EncapsedStringPart extends InterpolatedStringPart {}
}
6 changes: 6 additions & 0 deletions lib/PhpParser/Node/Scalar/LNumber.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<?php declare(strict_types=1);

namespace PhpParser\Node\Scalar;

require __DIR__ . '/Int_.php';

if (false) {

Check failure on line 7 in lib/PhpParser/Node/Scalar/LNumber.php

View workflow job for this annotation

GitHub Actions / PHPStan

If condition is always false.
class LNumber extends Int_ {}
}
8 changes: 8 additions & 0 deletions lib/PhpParser/Node/Stmt/DeclareDeclare.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<?php declare(strict_types=1);

namespace PhpParser\Node\Stmt;

use PhpParser\Node\DeclareItem;

require __DIR__ . '/../DeclareItem.php';

if (false) {

Check failure on line 9 in lib/PhpParser/Node/Stmt/DeclareDeclare.php

View workflow job for this annotation

GitHub Actions / PHPStan

If condition is always false.
class DeclareDeclare extends DeclareItem {}
}
6 changes: 6 additions & 0 deletions lib/PhpParser/Node/Stmt/PropertyProperty.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<?php declare(strict_types=1);

namespace PhpParser\Node\Stmt;

require __DIR__ . '/../PropertyItem.php';

if (false) {

Check failure on line 7 in lib/PhpParser/Node/Stmt/PropertyProperty.php

View workflow job for this annotation

GitHub Actions / PHPStan

If condition is always false.
class PropertyProperty extends PropertyItem {}

Check failure on line 8 in lib/PhpParser/Node/Stmt/PropertyProperty.php

View workflow job for this annotation

GitHub Actions / PHPStan

Class PhpParser\Node\Stmt\PropertyProperty extends unknown class PhpParser\Node\Stmt\PropertyItem.
}
6 changes: 6 additions & 0 deletions lib/PhpParser/Node/Stmt/StaticVar.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<?php declare(strict_types=1);

namespace PhpParser\Node\Stmt;

require __DIR__ . '/../StaticVar.php';

if (false) {

Check failure on line 7 in lib/PhpParser/Node/Stmt/StaticVar.php

View workflow job for this annotation

GitHub Actions / PHPStan

If condition is always false.
class StaticVar extends \PhpParser\Node\StaticVar {}
}
6 changes: 6 additions & 0 deletions lib/PhpParser/Node/Stmt/UseUse.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<?php declare(strict_types=1);

namespace PhpParser\Node\Stmt;

require __DIR__ . '/../UseItem.php';

if (false) {
class UseUse extends \PhpParser\Node\UseItem {}
}
Loading