parser/tests/fixtures/0275/code.php
Saif Eddin Gmati 4d0cd75fa9
fix: fix parsing by_ref parameters (#179)
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-08 18:07:03 +01:00

105 lines
5.5 KiB
PHP

<?php
static fn (Foo &...$s): Bar => Bar::from($s);
static fn (Foo ...$s): Bar => Bar::from($s);
static fn (Foo &$s): Bar => Bar::from($s);
static fn (Foo $s): Bar => Bar::from($s);
static function (Foo &...$s): Bar { return Bar::from($s); };
static function (Foo ...$s): Bar { return Bar::from($s); };
static function (Foo &$s): Bar { return Bar::from($s); };
static function (Foo $s): Bar { return Bar::from($s); };
static fn (Foo&Bar&Baz &...$s): Bar => Bar::from($s);
static fn (Foo&Bar&Baz ...$s): Bar => Bar::from($s);
static fn (Foo&Bar&Baz &$s): Bar => Bar::from($s);
static fn (Foo&Bar&Baz $s): Bar => Bar::from($s);
static function (Foo&Bar&Baz &...$s): Bar { return Bar::from($s); };
static function (Foo&Bar&Baz ...$s): Bar { return Bar::from($s); };
static function (Foo&Bar&Baz &$s): Bar { return Bar::from($s); };
static function (Foo&Bar&Baz $s): Bar { return Bar::from($s); };
static fn (Foo|Bar|Baz &...$s): Bar => Bar::from($s);
static fn (Foo|Bar|Baz ...$s): Bar => Bar::from($s);
static fn (Foo|Bar|Baz &$s): Bar => Bar::from($s);
static fn (Foo|Bar|Baz $s): Bar => Bar::from($s);
static function (Foo|Bar|Baz &...$s): Bar { return Bar::from($s); };
static function (Foo|Bar|Baz ...$s): Bar { return Bar::from($s); };
static function (Foo|Bar|Baz &$s): Bar { return Bar::from($s); };
static function (Foo|Bar|Baz $s): Bar { return Bar::from($s); };
static fn (Foo|(Bar&Baz) &...$s): Bar => Bar::from($s);
static fn (Foo|(Bar&Baz) ...$s): Bar => Bar::from($s);
static fn (Foo|(Bar&Baz) &$s): Bar => Bar::from($s);
static fn (Foo|(Bar&Baz) $s): Bar => Bar::from($s);
static function (Foo|(Bar&Baz) &...$s): Bar { return Bar::from($s); };
static function (Foo|(Bar&Baz) ...$s): Bar { return Bar::from($s); };
static function (Foo|(Bar&Baz) &$s): Bar { return Bar::from($s); };
static function (Foo|(Bar&Baz) $s): Bar { return Bar::from($s); };
static fn (Foo&(Bar|Baz) &...$s): Bar => Bar::from($s);
static fn (Foo&(Bar|Baz) ...$s): Bar => Bar::from($s);
static fn (Foo&(Bar|Baz) &$s): Bar => Bar::from($s);
static fn (Foo&(Bar|Baz) $s): Bar => Bar::from($s);
static function (Foo&(Bar|Baz) &...$s): Bar { return Bar::from($s); };
static function (Foo&(Bar|Baz) ...$s): Bar { return Bar::from($s); };
static function (Foo&(Bar|Baz) &$s): Bar { return Bar::from($s); };
static function (Foo&(Bar|Baz) $s): Bar { return Bar::from($s); };
fn (Foo &...$s): Bar => Bar::from($s);
fn (Foo ...$s): Bar => Bar::from($s);
fn (Foo &$s): Bar => Bar::from($s);
fn (Foo $s): Bar => Bar::from($s);
function (Foo &...$s): Bar { return Bar::from($s); };
function (Foo ...$s): Bar { return Bar::from($s); };
function (Foo &$s): Bar { return Bar::from($s); };
function (Foo $s): Bar { return Bar::from($s); };
fn (Foo&Bar&Baz &...$s): Bar => Bar::from($s);
fn (Foo&Bar&Baz ...$s): Bar => Bar::from($s);
fn (Foo&Bar&Baz &$s): Bar => Bar::from($s);
fn (Foo&Bar&Baz $s): Bar => Bar::from($s);
function (Foo&Bar&Baz &...$s): Bar { return Bar::from($s); };
function (Foo&Bar&Baz ...$s): Bar { return Bar::from($s); };
function (Foo&Bar&Baz &$s): Bar { return Bar::from($s); };
function (Foo&Bar&Baz $s): Bar { return Bar::from($s); };
fn (Foo|Bar|Baz &...$s): Bar => Bar::from($s);
fn (Foo|Bar|Baz ...$s): Bar => Bar::from($s);
fn (Foo|Bar|Baz &$s): Bar => Bar::from($s);
fn (Foo|Bar|Baz $s): Bar => Bar::from($s);
function (Foo|Bar|Baz &...$s): Bar { return Bar::from($s); };
function (Foo|Bar|Baz ...$s): Bar { return Bar::from($s); };
function (Foo|Bar|Baz &$s): Bar { return Bar::from($s); };
function (Foo|Bar|Baz $s): Bar { return Bar::from($s); };
fn (Foo|(Bar&Baz) &...$s): Bar => Bar::from($s);
fn (Foo|(Bar&Baz) ...$s): Bar => Bar::from($s);
fn (Foo|(Bar&Baz) &$s): Bar => Bar::from($s);
fn (Foo|(Bar&Baz) $s): Bar => Bar::from($s);
function (Foo|(Bar&Baz) &...$s): Bar { return Bar::from($s); };
function (Foo|(Bar&Baz) ...$s): Bar { return Bar::from($s); };
function (Foo|(Bar&Baz) &$s): Bar { return Bar::from($s); };
function (Foo|(Bar&Baz) $s): Bar { return Bar::from($s); };
fn (Foo&(Bar|Baz) &...$s): Bar => Bar::from($s);
fn (Foo&(Bar|Baz) ...$s): Bar => Bar::from($s);
fn (Foo&(Bar|Baz) &$s): Bar => Bar::from($s);
fn (Foo&(Bar|Baz) $s): Bar => Bar::from($s);
function (Foo&(Bar|Baz) &...$s): Bar { return Bar::from($s); };
function (Foo&(Bar|Baz) ...$s): Bar { return Bar::from($s); };
function (Foo&(Bar|Baz) &$s): Bar { return Bar::from($s); };
function (Foo&(Bar|Baz) $s): Bar { return Bar::from($s); };
function foo(Foo &...$s): Bar { return Bar::from($s); }
function foo(Foo ...$s): Bar { return Bar::from($s); }
function foo(Foo &$s): Bar { return Bar::from($s); }
function foo(Foo $s): Bar { return Bar::from($s); }
function foo(Foo&Bar&Baz &...$s): Bar { return Bar::from($s); }
function foo(Foo&Bar&Baz ...$s): Bar { return Bar::from($s); }
function foo(Foo&Bar&Baz &$s): Bar { return Bar::from($s); }
function foo(Foo&Bar&Baz $s): Bar { return Bar::from($s); }
function foo(Foo|Bar|Baz &...$s): Bar { return Bar::from($s); }
function foo(Foo|Bar|Baz ...$s): Bar { return Bar::from($s); }
function foo(Foo|Bar|Baz &$s): Bar { return Bar::from($s); }
function foo(Foo|Bar|Baz $s): Bar { return Bar::from($s); }
function foo(Foo|(Bar&Baz) &...$s): Bar { return Bar::from($s); }
function foo(Foo|(Bar&Baz) ...$s): Bar { return Bar::from($s); }
function foo(Foo|(Bar&Baz) &$s): Bar { return Bar::from($s); }
function foo(Foo|(Bar&Baz) $s): Bar { return Bar::from($s); }
function foo(Foo&(Bar|Baz) &...$s): Bar { return Bar::from($s); }
function foo(Foo&(Bar|Baz) ...$s): Bar { return Bar::from($s); }
function foo(Foo&(Bar|Baz) &$s): Bar { return Bar::from($s); }
function foo(Foo&(Bar|Baz) $s): Bar { return Bar::from($s); }