Skip to content

Commit

Permalink
fixed PHP7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Nov 22, 2015
1 parent 3e93089 commit 8af00aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Bartlett/CompatInfo/Analyser/CompatibilityAnalyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ private function computeFunctionCallVersions(Node $node)
if (strcasecmp('define', $element) === 0) {
// user defined constant
$name = $node->args[0]->value;
if (!$name instanceof Node\Scalar\String) {
if (!$name instanceof Node\Scalar\String_) {
// cannot resolved indirect definition
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function nodeProcessor(Node $node)

$element = $node->args[0]->value;

if (!$element instanceof Node\Scalar\String) {
if (!$element instanceof Node\Scalar\String_) {
// cannot resolve variable argument
return;
}
Expand All @@ -74,7 +74,7 @@ protected function nodeProcessor(Node $node)
// check also 2nd argument of method_exists
$method = $node->args[1]->value;

if (!$method instanceof Node\Scalar\String) {
if (!$method instanceof Node\Scalar\String_) {
// cannot resolve method name argument
return;
}
Expand Down

0 comments on commit 8af00aa

Please sign in to comment.