Skip to content

Commit 5f75fea

Browse files
authored
chore(deps): πŸ€– bump php-parser from 3.1.5 to 3.2.1 (#2411)
* chore: πŸ€– bump php-parser from 3.1.5 to 3.2.1 * test: πŸ’ add test for reserved keyword after null-safe operator
1 parent 6f7d65d commit 5f75fea

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

β€Žtests/nullsafepropertylookup/__snapshots__/jsfmt.spec.mjs.snapβ€Ž

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,31 @@ $obj->aaaaaaaaaaaaaaaaaaaaaaaa()
7676
7777
================================================================================
7878
`;
79+
80+
exports[`reserved-keyword.php 1`] = `
81+
====================================options=====================================
82+
parsers: ["php"]
83+
phpVersion: "8.0"
84+
printWidth: 80
85+
| printWidth
86+
=====================================input======================================
87+
<?php
88+
89+
// keyword: abstract
90+
echo $post->metaData?->abstract;
91+
92+
// keyword: class
93+
echo $record->learner->currentEnrollment?->class->grade->code;
94+
95+
96+
=====================================output=====================================
97+
<?php
98+
99+
// keyword: abstract
100+
echo $post->metaData?->abstract;
101+
102+
// keyword: class
103+
echo $record->learner->currentEnrollment?->class->grade->code;
104+
105+
================================================================================
106+
`;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
// keyword: abstract
4+
echo $post->metaData?->abstract;
5+
6+
// keyword: class
7+
echo $record->learner->currentEnrollment?->class->grade->code;
8+

β€Žyarn.lockβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5008,9 +5008,9 @@ path-type@^4.0.0:
50085008
integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
50095009

50105010
php-parser@^3.1.5:
5011-
version "3.1.5"
5012-
resolved "https://registry.yarnpkg.com/php-parser/-/php-parser-3.1.5.tgz#84500e5b5c6a0907e32c38b931bb4e7d3f275026"
5013-
integrity sha512-jEY2DcbgCm5aclzBdfW86GM6VEIWcSlhTBSHN1qhJguVePlYe28GhwS0yoeLYXpM2K8y6wzLwrbq814n2PHSoQ==
5011+
version "3.2.1"
5012+
resolved "https://registry.yarnpkg.com/php-parser/-/php-parser-3.2.1.tgz#960916dc03e4979a59435f9dd9eb03f2e86d8126"
5013+
integrity sha512-WT5AMqe39ZdqAxp9Yp7uR6e3clBWlT1dxHHs49GmnDx2d+975NEiLSVy2tRGLdSC9tgdQOLiN1Yz54g1d2cZDQ==
50145014

50155015
picocolors@^1.0.0:
50165016
version "1.0.0"

0 commit comments

Comments
Β (0)