extends |
AbstractSourceLocator |
|---|
This source locator simply parses the string given in the constructor as valid PHP.
Note that this source locator does NOT specify a filename, because we did not load it from a file, so it will be null if you use this locator.
| Methods | ||
|---|---|---|
public
|
__construct(non-empty-string $source, Locator $astLocator)
|
# |
protected
|
createLocatedSource(Identifier $identifier): ?LocatedSource
|
# |
| Methods inherited from PHPStan\BetterReflection\SourceLocator\Type\AbstractSourceLocator |
|---|
locateIdentifier(), locateIdentifiersByType() |