Download src/php/php-src/Zend/tests/anon/010.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 251 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/anon/010.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/anon/010.phpt
-
curl -L -o 010.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/anon/010.phpt
251 Bytes
| --TEST-- | |
| Trait binding after anon class | |
| --FILE-- | |
| trait T { | |
| public function m1() { return 42; } | |
| } | |
| class C { | |
| public function m2() { | |
| return new class {}; | |
| } | |
| use T; | |
| } | |
| $c = new C; | |
| var_dump($c->m1()); | |
| --EXPECT-- | |
| int(42) | |