Skip to content

Commit 7160514

Browse files
authored
fix(deps): update parser (#1403)
1 parent dc314b7 commit 7160514

4 files changed

Lines changed: 21 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"linguist-languages": "^7.5.1",
1515
"mem": "^6.0.1",
16-
"php-parser": "3.0.0"
16+
"php-parser": "3.0.1"
1717
},
1818
"devDependencies": {
1919
"@babel/preset-env": "^7.7.5",

tests/yield/__snapshots__/jsfmt.spec.js.snap

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ function count_to_ten() {
6060
return yield from nine_ten();
6161
}
6262
63+
function foo() {
64+
$test = 123;
65+
yield "bar {$test}" => 123;
66+
}
67+
6368
=====================================output=====================================
6469
<?php
6570
function from()
@@ -121,5 +126,11 @@ function count_to_ten()
121126
return yield from nine_ten();
122127
}
123128
129+
function foo()
130+
{
131+
$test = 123;
132+
yield "bar {$test}" => 123;
133+
}
134+
124135
================================================================================
125136
`;

tests/yield/yield.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,8 @@ function count_to_ten() {
5151

5252
return yield from nine_ten();
5353
}
54+
55+
function foo() {
56+
$test = 123;
57+
yield "bar {$test}" => 123;
58+
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4035,10 +4035,10 @@ performance-now@^2.1.0:
40354035
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
40364036
integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=
40374037

4038-
php-parser@3.0.0:
4039-
version "3.0.0"
4040-
resolved "https://registry.yarnpkg.com/php-parser/-/php-parser-3.0.0.tgz#7e0abef4941cabbf10f25f1445bca0f758f5102f"
4041-
integrity sha512-WqGNf8Y5LBOXKJz9eKMwxjqfJ7KnwVU7DH3ebPTaOLlPtVrig++zG8KoOXywY9V9jQxY+wOY0EtC/e+wamaxsQ==
4038+
php-parser@3.0.1:
4039+
version "3.0.1"
4040+
resolved "https://registry.yarnpkg.com/php-parser/-/php-parser-3.0.1.tgz#69ae957362717cfefbc58eb208d12e48dab2e809"
4041+
integrity sha512-m6CBPHOoMkzEHoXG0rhEg/VegSNemUNQepHnYtrRgTAh8rsqoO65KqQ32KJ5xe2iplhO0jdwd1UJ9Ea0yHsgYQ==
40424042

40434043
picomatch@^2.0.4, picomatch@^2.0.5:
40444044
version "2.2.2"

0 commit comments

Comments
 (0)