-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix classmap authoritative autoloading (#1046)
This patch resolves #1045 by adding dummy class definitions behind if (false) checks that are picked up the authoritative autoloader.
- Loading branch information
1 parent
74d3f7f
commit 469377f
Showing
11 changed files
with
138 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace PhpParser\Node\Expr; | ||
|
||
require __DIR__ . '/../ArrayItem.php'; | ||
|
||
if (false) { | ||
// For classmap-authoritative support. | ||
class ArrayItem extends \PhpParser\Node\ArrayItem { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace PhpParser\Node\Expr; | ||
|
||
require __DIR__ . '/../ClosureUse.php'; | ||
|
||
if (false) { | ||
// For classmap-authoritative support. | ||
class ClosureUse extends \PhpParser\Node\ClosureUse { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace PhpParser\Node\Scalar; | ||
|
||
require __DIR__ . '/Float_.php'; | ||
|
||
if (false) { | ||
// For classmap-authoritative support. | ||
class DNumber extends Float_ { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace PhpParser\Node\Scalar; | ||
|
||
require __DIR__ . '/InterpolatedString.php'; | ||
|
||
if (false) { | ||
// For classmap-authoritative support. | ||
class Encapsed extends InterpolatedString { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace PhpParser\Node\Scalar; | ||
|
||
use PhpParser\Node\InterpolatedStringPart; | ||
|
||
require __DIR__ . '/../InterpolatedStringPart.php'; | ||
|
||
if (false) { | ||
// For classmap-authoritative support. | ||
class EncapsedStringPart extends InterpolatedStringPart { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace PhpParser\Node\Scalar; | ||
|
||
require __DIR__ . '/Int_.php'; | ||
|
||
if (false) { | ||
// For classmap-authoritative support. | ||
class LNumber extends Int_ { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace PhpParser\Node\Stmt; | ||
|
||
use PhpParser\Node\DeclareItem; | ||
|
||
require __DIR__ . '/../DeclareItem.php'; | ||
|
||
if (false) { | ||
// For classmap-authoritative support. | ||
class DeclareDeclare extends DeclareItem { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace PhpParser\Node\Stmt; | ||
|
||
use PhpParser\Node\PropertyItem; | ||
|
||
require __DIR__ . '/../PropertyItem.php'; | ||
|
||
if (false) { | ||
// For classmap-authoritative support. | ||
class PropertyProperty extends PropertyItem { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace PhpParser\Node\Stmt; | ||
|
||
require __DIR__ . '/../StaticVar.php'; | ||
|
||
if (false) { | ||
// For classmap-authoritative support. | ||
class StaticVar extends \PhpParser\Node\StaticVar { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace PhpParser\Node\Stmt; | ||
|
||
use PhpParser\Node\UseItem; | ||
|
||
require __DIR__ . '/../UseItem.php'; | ||
|
||
if (false) { | ||
// For classmap-authoritative support. | ||
class UseUse extends UseItem { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters