mirror of
https://github.com/danog/PHP-Parser.git
synced 2025-01-20 12:46:47 +01:00
Fix some readme + doccomment typos
This commit is contained in:
parent
d53173c2f3
commit
92f793001b
@ -4,7 +4,8 @@ PHP Parser
|
||||
This is a PHP parser written in PHP. It's purpose is to simplify static code analysis and
|
||||
manipulation.
|
||||
|
||||
***Note: This project is highly experimental. It may not always function correctly.***
|
||||
***Note: This project is experimental. There are no known bugs in the parser itself, but the API is
|
||||
subject to change.***
|
||||
|
||||
Components
|
||||
==========
|
||||
@ -21,11 +22,11 @@ Autoloader
|
||||
|
||||
In order to automatically include required files `PHPParser_Autoloader` can be used:
|
||||
|
||||
require_once 'path/to/phpparser/lib/PHPParser/Autoloader.php';
|
||||
require_once 'path/to/PHP-Parser/lib/PHPParser/Autoloader.php';
|
||||
PHPParser_Autoloader::register();
|
||||
|
||||
Parser and Parser_Debug
|
||||
----------------------
|
||||
-----------------------
|
||||
|
||||
Parsing is performed using `PHPParser_Parser->parse()`. This method accepts a `PHPParser_Lexer`
|
||||
as the only parameter and returns an array of statement nodes. If an error occurs it throws a
|
||||
|
@ -18,7 +18,7 @@ class PHPParser_Node_Expr_LambdaFunc extends PHPParser_Node_Expr
|
||||
* @param int $line Line
|
||||
* @param null|string $docComment Nearest doc comment
|
||||
*/
|
||||
public function __construct(array $stmts, array $params = array(), $uses = array(), $byRef = false, $line = -1, $docComment = null) {
|
||||
public function __construct(array $stmts, array $params = array(), array $uses = array(), $byRef = false, $line = -1, $docComment = null) {
|
||||
parent::__construct(
|
||||
array(
|
||||
'stmts' => $stmts,
|
||||
|
@ -8,7 +8,7 @@ class PHPParser_Node_Scalar_DNumber extends PHPParser_Node_Scalar
|
||||
/**
|
||||
* Constructs a float number scalar node.
|
||||
*
|
||||
* @param double $value Value of the number
|
||||
* @param float $value Value of the number
|
||||
* @param int $line Line
|
||||
* @param null|string $docComment Nearest doc comment
|
||||
*/
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
/**
|
||||
* @property PHPParser_Node[] $stmts Statements
|
||||
* @property null|PHPParser_Node_Expr $cond Condition (null for default)
|
||||
* @property null|PHPParser_Node_Expr $cond Condition (null for default)
|
||||
*/
|
||||
class PHPParser_Node_Stmt_Case extends PHPParser_Node_Stmt
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user