Version.php 641 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Guzzle\Common;
  3. /**
  4. * Guzzle version information
  5. */
  6. class Version
  7. {
  8. const VERSION = '3.9.2';
  9. /**
  10. * @var bool Set this value to true to enable warnings for deprecated functionality use. This should be on in your
  11. * unit tests, but probably not in production.
  12. */
  13. public static $emitWarnings = false;
  14. /**
  15. * Emit a deprecation warning
  16. *
  17. * @param string $message Warning message
  18. */
  19. public static function warn($message)
  20. {
  21. if (self::$emitWarnings) {
  22. trigger_error('Deprecation warning: ' . $message, E_USER_DEPRECATED);
  23. }
  24. }
  25. }