Skip to content

Commit 87ba9a9

Browse files
committed
Fix emitting errors for instanceof
1 parent c19fa84 commit 87ba9a9

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ Is operator for PHP - ChangeLog
33

44
## ?.?.? / ????-??-??
55

6+
## 1.0.1 / 2020-04-04
7+
8+
* Fixed emitting errors for `instanceof` - @thekid
9+
610
## 1.0.0 / 2019-11-30
711

812
* Implemented xp-framework/rfc#334: Drop PHP 5.6. The minimum required

class.pth

100644100755
File mode changed.

src/main/php/lang/ast/syntax/php/IsOperator.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function setup($language, $emitter) {
4646
} else if (isset($is[$literal])) {
4747
return new InvokeExpression(new Literal('is_'.$literal), [$expr]);
4848
} else {
49-
return new InstanceOfExpression($expr, new Literal($literal));
49+
return new InstanceOfExpression($expr, $literal);
5050
}
5151
};
5252

0 commit comments

Comments
 (0)