diff options
Diffstat (limited to 'vendor/symfony/var-exporter/Internal/LazyObjectTrait.php')
-rw-r--r-- | vendor/symfony/var-exporter/Internal/LazyObjectTrait.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/vendor/symfony/var-exporter/Internal/LazyObjectTrait.php b/vendor/symfony/var-exporter/Internal/LazyObjectTrait.php new file mode 100644 index 0000000..4a6f232 --- /dev/null +++ b/vendor/symfony/var-exporter/Internal/LazyObjectTrait.php | |||
@@ -0,0 +1,34 @@ | |||
1 | <?php | ||
2 | |||
3 | /* | ||
4 | * This file is part of the Symfony package. | ||
5 | * | ||
6 | * (c) Fabien Potencier <fabien@symfony.com> | ||
7 | * | ||
8 | * For the full copyright and license information, please view the LICENSE | ||
9 | * file that was distributed with this source code. | ||
10 | */ | ||
11 | |||
12 | namespace Symfony\Component\VarExporter\Internal; | ||
13 | |||
14 | use Symfony\Component\Serializer\Attribute\Ignore; | ||
15 | |||
16 | if (\PHP_VERSION_ID >= 80300) { | ||
17 | /** | ||
18 | * @internal | ||
19 | */ | ||
20 | trait LazyObjectTrait | ||
21 | { | ||
22 | #[Ignore] | ||
23 | private readonly LazyObjectState $lazyObjectState; | ||
24 | } | ||
25 | } else { | ||
26 | /** | ||
27 | * @internal | ||
28 | */ | ||
29 | trait LazyObjectTrait | ||
30 | { | ||
31 | #[Ignore] | ||
32 | private LazyObjectState $lazyObjectState; | ||
33 | } | ||
34 | } | ||