@jorgsowa/php-parser 3.2.5-6 → 3.2.5-7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  *
3
3
  * Package: @jorgsowa/php-parser
4
4
  * Parse PHP code from JS and returns its AST
5
- * Build: 886a71172e9c51f3326d - 1/10/2026
5
+ * Build: 33a1f8a001c68e837245 - 1/10/2026
6
6
  * Copyright (C) 2021 Glayzzle (BSD-3-Clause)
7
7
  * @authors https://github.com/glayzzle/php-parser/graphs/contributors
8
8
  * @url http://glayzzle.com
@@ -7289,6 +7289,7 @@ module.exports = {
7289
7289
  /**
7290
7290
  * Reads property hooks
7291
7291
  *
7292
+ * @memberOf module:php-parser
7292
7293
  * @returns {PropertyHook[]}
7293
7294
  */
7294
7295
  read_property_hooks: function read_property_hooks() {
@@ -2,7 +2,7 @@
2
2
  *
3
3
  * Package: @jorgsowa/php-parser
4
4
  * Parse PHP code from JS and returns its AST
5
- * Build: 886a71172e9c51f3326d - 1/10/2026
5
+ * Build: 33a1f8a001c68e837245 - 1/10/2026
6
6
  * Copyright (C) 2021 Glayzzle (BSD-3-Clause)
7
7
  * @authors https://github.com/glayzzle/php-parser/graphs/contributors
8
8
  * @url http://glayzzle.com
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jorgsowa/php-parser",
3
- "version": "3.2.5-6",
3
+ "version": "3.2.5-7",
4
4
  "description": "Parse PHP code from JS and returns its AST",
5
5
  "main": "src/index.js",
6
6
  "browser": "dist/php-parser.js",
@@ -59,7 +59,7 @@
59
59
  "@babel/core": "^7.27.4",
60
60
  "@babel/preset-env": "^7.27.2",
61
61
  "@eslint/js": "^9.29.0",
62
- "@types/node": "^24.0.4",
62
+ "@types/node": "^25.0.6",
63
63
  "babel-loader": "^10.0.0",
64
64
  "benchmark": "^2.1.4",
65
65
  "coveralls": "^3.0.3",
@@ -67,7 +67,7 @@
67
67
  "eslint-config-prettier": "^10.1.5",
68
68
  "eslint-plugin-jest": "^29.0.1",
69
69
  "eslint-plugin-prettier": "^5.5.0",
70
- "globals": "^16.2.0",
70
+ "globals": "^17.0.0",
71
71
  "husky": "^9.1.7",
72
72
  "jest": "^30.0.3",
73
73
  "jest-runner-eslint": "^2.2.1",
@@ -77,7 +77,7 @@
77
77
  "prettier": "^3.6.1",
78
78
  "tsd-jsdoc": "^2.5.0",
79
79
  "typescript": "^5.8.3",
80
- "webpack": "5.96.0",
80
+ "webpack": "5.104.1",
81
81
  "webpack-cli": "^6.0.1",
82
82
  "yarpm": "^1.2.0"
83
83
  },
@@ -245,6 +245,7 @@ module.exports = {
245
245
  /**
246
246
  * Reads property hooks
247
247
  *
248
+ * @memberOf module:php-parser
248
249
  * @returns {PropertyHook[]}
249
250
  */
250
251
  read_property_hooks() {
package/types.d.ts CHANGED
@@ -775,6 +775,7 @@ declare module "php-parser" {
775
775
  readonly: boolean;
776
776
  nullable: boolean;
777
777
  type: Identifier | Identifier[] | null;
778
+ hooks: PropertyHook[];
778
779
  attrGroups: AttrGroup[];
779
780
  }
780
781
  /**
@@ -1201,6 +1202,10 @@ declare module "php-parser" {
1201
1202
  */
1202
1203
  castKeywords: any;
1203
1204
  }
1205
+ /**
1206
+ * Reads property hooks
1207
+ */
1208
+ function read_property_hooks(): PropertyHook[];
1204
1209
  /**
1205
1210
  * The PHP Parser class that build the AST tree from the lexer
1206
1211
  * @property lexer - current lexer instance