Download src/php/php-src/Zend/tests/attributes/008_wrong_attribution.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 205 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/attributes/008_wrong_attribution.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/attributes/008_wrong_attribution.phpt
-
curl -L -o 008_wrong_attribution.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/attributes/008_wrong_attribution.phpt
205 Bytes
| --TEST-- | |
| Attributes: Prevent Attribute on non classes | |
| --FILE-- | |
| function foo() {} | |
| --EXPECTF-- | |
| Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s | |