1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-30 04:19:30 +01:00

Fix some typing issues

This commit is contained in:
Nikita Popov 2017-04-26 21:49:22 +02:00
parent ceaed32e94
commit 8635365a30
3 changed files with 7 additions and 7 deletions

View File

@ -708,7 +708,7 @@ abstract class ParserAbstract implements Parser
*
* @return LNumber|String_ Integer or string node.
*/
protected function parseNumString($str, $attributes) {
protected function parseNumString($str, array $attributes) {
if (!preg_match('/^(?:0|-?[1-9][0-9]*)$/', $str)) {
return new String_($str, $attributes);
}

View File

@ -681,11 +681,11 @@ abstract class PrettyPrinterAbstract
* are required to preserve program semantics in a certain context (e.g. to maintain precedence
* or because only certain expressions are allowed in certain places).
*
* @param int $fixup Fixup type
* @param Node $subNode Subnode to print
* @param string $parentType Type of parent node
* @param int $subStartPos Original start pos of subnode
* @param int $subEndPos Original end pos of subnode
* @param int $fixup Fixup type
* @param Node $subNode Subnode to print
* @param string|null $parentType Type of parent node
* @param int $subStartPos Original start pos of subnode
* @param int $subEndPos Original end pos of subnode
*
* @return string Result of fixed-up print of subnode
*/

View File

@ -43,7 +43,7 @@ class ClassMethodTest extends \PHPUnit_Framework_TestCase
*
* @dataProvider implicitPublicModifiers
*
* @param integer $modifier Node type modifier
* @param string $modifier Node type modifier
*/
public function testImplicitPublic($modifier)
{