composer update
This commit is contained in:
8
vendor/nikic/php-parser/test/code/prettyPrinter/expr/arraySpread.test
vendored
Normal file
8
vendor/nikic/php-parser/test/code/prettyPrinter/expr/arraySpread.test
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
Array spread
|
||||
-----
|
||||
<?php
|
||||
|
||||
[$a, $b] = [...$c, ...$d];
|
||||
-----
|
||||
!!php7
|
||||
[$a, $b] = [...$c, ...$d];
|
||||
18
vendor/nikic/php-parser/test/code/prettyPrinter/expr/arrow_function.test
vendored
Normal file
18
vendor/nikic/php-parser/test/code/prettyPrinter/expr/arrow_function.test
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
Arrow function
|
||||
-----
|
||||
<?php
|
||||
|
||||
fn($a) => $a;
|
||||
fn($x = 42) => $x;
|
||||
fn(&$x) => $x;
|
||||
fn&($x) => $x;
|
||||
static fn($x, ...$rest) => $rest;
|
||||
fn(): int => $x;
|
||||
-----
|
||||
!!php7
|
||||
fn($a) => $a;
|
||||
fn($x = 42) => $x;
|
||||
fn(&$x) => $x;
|
||||
fn&($x) => $x;
|
||||
static fn($x, ...$rest) => $rest;
|
||||
fn(): int => $x;
|
||||
Reference in New Issue
Block a user