Skip to content

Commit

Permalink
Merge pull request #4 from tamcap/tamcap-php7
Browse files Browse the repository at this point in the history
Update nikic/php-parser to 1.3.*
  • Loading branch information
Ocramius committed Jul 1, 2015
2 parents d27db31 + 22c351f commit 0e2f6c5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ php:
- 5.6
- hhvm

matrix:
allow_failures:
- php: hhvm

before_script:
- composer self-update
- composer update --prefer-source --dev
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],
"require": {
"php": ">=5.3.3",
"nikic/php-parser": "~1.0"
"nikic/php-parser": "~1.3"
},
"require-dev": {
"phpunit/phpunit": ">=3.7",
Expand Down
4 changes: 2 additions & 2 deletions src/CodeGenerationUtils/Visitor/MethodDisablerVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
use PhpParser\Node\Arg;
use PhpParser\Node\Expr\New_;
use PhpParser\Node\Name\FullyQualified;
use PhpParser\Node\Scalar\String;
use PhpParser\Node\Scalar\String_;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\Node\Stmt\Throw_;
use PhpParser\NodeVisitorAbstract;
Expand Down Expand Up @@ -76,7 +76,7 @@ public function leaveNode(Node $node)
new Throw_(
new New_(
new FullyQualified('BadMethodCallException'),
array(new Arg(new String('Method is disabled')))
array(new Arg(new String_('Method is disabled')))
)
)
);
Expand Down

0 comments on commit 0e2f6c5

Please sign in to comment.