Skip to content

Commit

Permalink
chore(deps): πŸ€– bump php-parser from 3.1.5 to 3.2.1 (#2411)
Browse files Browse the repository at this point in the history
* chore: πŸ€– bump php-parser from 3.1.5 to 3.2.1

* test: πŸ’ add test for reserved keyword after null-safe operator
  • Loading branch information
shufo authored Dec 31, 2024
1 parent 6f7d65d commit 5f75fea
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
28 changes: 28 additions & 0 deletions tests/nullsafepropertylookup/__snapshots__/jsfmt.spec.mjs.snap
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 76,31 @@ $obj->aaaaaaaaaaaaaaaaaaaaaaaa()
================================================================================
`;

exports[`reserved-keyword.php 1`] = `
====================================options=====================================
parsers: ["php"]
phpVersion: "8.0"
printWidth: 80
| printWidth
=====================================input======================================
<?php
// keyword: abstract
echo $post->metaData?->abstract;
// keyword: class
echo $record->learner->currentEnrollment?->class->grade->code;
=====================================output=====================================
<?php
// keyword: abstract
echo $post->metaData?->abstract;
// keyword: class
echo $record->learner->currentEnrollment?->class->grade->code;
================================================================================
`;
8 changes: 8 additions & 0 deletions tests/nullsafepropertylookup/reserved-keyword.php
Original file line number Diff line number Diff line change
@@ -0,0 1,8 @@
<?php

// keyword: abstract
echo $post->metaData?->abstract;

// keyword: class
echo $record->learner->currentEnrollment?->class->grade->code;

6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5008,9 5008,9 @@ path-type@^4.0.0:
integrity sha512-gDKb8aZMDeD/tZWs9P6 q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==

php-parser@^3.1.5:
version "3.1.5"
resolved "https://registry.yarnpkg.com/php-parser/-/php-parser-3.1.5.tgz#84500e5b5c6a0907e32c38b931bb4e7d3f275026"
integrity sha512-jEY2DcbgCm5aclzBdfW86GM6VEIWcSlhTBSHN1qhJguVePlYe28GhwS0yoeLYXpM2K8y6wzLwrbq814n2PHSoQ==
version "3.2.1"
resolved "https://registry.yarnpkg.com/php-parser/-/php-parser-3.2.1.tgz#960916dc03e4979a86335f9dd9eb03f2e86d8126"
integrity sha512-WT5AMqe39ZdqAxp9Yp7uR6e3clBWlT1dxHHs49GmnDx2d 975NEiLSVy2tRGLdSC9tgdQOLiN1Yz54g1d2cZDQ==

picocolors@^1.0.0:
version "1.0.0"
Expand Down

0 comments on commit 5f75fea

Please sign in to comment.