Util.php 463 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Collection of various useful functions
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\Framework;
  9. class Util
  10. {
  11. /**
  12. * Return PHP version without optional suffix
  13. * Scheme: major.minor.release
  14. * @return string
  15. */
  16. public function getTrimmedPhpVersion()
  17. {
  18. return implode('.', [PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION]);
  19. }
  20. }