Spaces:
Runtime error
Runtime error
Download symfony/dependency-injection/Argument/ArgumentTrait.php from Alcazard/vibe-coding-api: direct link, hf CLI and curl.
- Browser
- Download file 778 Bytes
-
https://huggingface.co/spaces/Alcazard/vibe-coding-api/resolve/main/symfony/dependency-injection/Argument/ArgumentTrait.php
- Command line
-
hf download hf://spaces/Alcazard/vibe-coding-api/symfony/dependency-injection/Argument/ArgumentTrait.php
-
curl -L -o ArgumentTrait.php https://huggingface.co/spaces/Alcazard/vibe-coding-api/resolve/main/symfony/dependency-injection/Argument/ArgumentTrait.php
778 Bytes
| /* | |
| * This file is part of the Symfony package. | |
| * | |
| * (c) Fabien Potencier <fabien@symfony.com> | |
| * | |
| * For the full copyright and license information, please view the LICENSE | |
| * file that was distributed with this source code. | |
| */ | |
| namespace Symfony\Component\DependencyInjection\Argument; | |
| /** | |
| * Helps reduce the size of the dumped container when using php-serialize. | |
| * | |
| * @internal | |
| */ | |
| trait ArgumentTrait | |
| { | |
| public function __serialize(): array | |
| { | |
| $data = []; | |
| foreach ((array) $this as $k => $v) { | |
| if (null === $v) { | |
| continue; | |
| } | |
| if (false !== $i = strrpos($k, "\0")) { | |
| $k = substr($k, 1 + $i); | |
| } | |
| $data[$k] = $v; | |
| } | |
| return $data; | |
| } | |
| } | |