LazyObjectTrait.php 671 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\VarExporter\Internal;
  11. use Symfony\Component\Serializer\Attribute\Ignore;
  12. if (\PHP_VERSION_ID >= 80300) {
  13. /**
  14. * @internal
  15. */
  16. trait LazyObjectTrait
  17. {
  18. #[Ignore]
  19. private readonly LazyObjectState $lazyObjectState;
  20. }
  21. } else {
  22. /**
  23. * @internal
  24. */
  25. trait LazyObjectTrait
  26. {
  27. #[Ignore]
  28. private LazyObjectState $lazyObjectState;
  29. }
  30. }