Skip to content

Commit 55ea8e5

Browse files
committed
Extend node instead of statement
1 parent 6b74685 commit 55ea8e5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ast/propertyhook.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@
55
*/
66
"use strict";
77

8-
const Statement = require("./statement");
8+
const Node = require("./node");
99
const KIND = "propertyhook";
1010

1111
/**
1212
* Defines a class property hook getter & setter
1313
*
1414
* @constructor PropertyHook
1515
* @memberOf module:php-parser
16-
* @extends {Statement}
16+
* @extends {Node}
1717
* @property {string} name
1818
* @property {Boolean} isFinal
1919
* @property {Boolean} byref
2020
* @property {Parameter|null} parameter
2121
* @property {Block|Statement} body
2222
*/
23-
module.exports = Statement.extends(
23+
module.exports = Node.extends(
2424
KIND,
2525
function PropertyHook(name, isFinal, byref, parameter, body, docs, location) {
26-
Statement.apply(this, [KIND, docs, location]);
26+
Node.apply(this, [KIND, docs, location]);
2727
this.name = name;
2828
this.byref = byref;
2929
this.parameter = parameter;

types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ declare module "php-parser" {
780780
/**
781781
* Defines a class property hook getter & setter
782782
*/
783-
class PropertyHook extends Statement {
783+
class PropertyHook extends Node {
784784
name: string;
785785
isFinal: boolean;
786786
byref: boolean;

0 commit comments

Comments
 (0)