README
October 6, 2020 at 5:41 AMTable Of Contents
Components
-
Parsing PHP 5 and PHP 7 code into an abstract syntax tree (AST) is provided by the PHP-Parser library.
-
Contextual elements and minimum PHP versions detection provided by following node visitors.
PHP-Parser Node Visitors
-
Parent references with the
ParentContextVisitor -
Name Resolution with the
NameResolverVisitor -
Version Resolution with the
VersionResolverVisitor
Profiler
-
Data Collector(s) with common
DataCollectorand specializedVersionDataCollectorclasses -
Data Collector(s) contract with the
CollectorInterface -
Collector Handler for both Profile and Profiler with
CollectorTrait -
Profile information for a single data source with
Profile
Sniffs
They are grouped by categories to solve PHP features (from 4.0 to 7.4)
- Arrays (2)
- Classes (6)
- Constants (3)
- ControlStructures (2)
- Expressions (3)
- FunctionDeclarations (3)
- Generators (1)
- Keywords (1)
- Numbers (1)
- Operators (4)
- TextProcessing (1)
- UseDeclarations (2)
Configuration(s)
Load a config for CLI Application with the --config option.
Read How to Load –config With Services in Symfony Console to learn more.
Conditional Code
Learn what code is consider as conditional, detected or not (with CompatInfo 5.4)