Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
888 B

5 years ago
  1. ISSUES to override vendor
  2. =========================
  3. IntlDateFormatter::__construct() expects parameter 3 to be integer, string given
  4. --------------------------------------------------------------------------------
  5. * Description:
  6. Fail located on php7.2 but not in >7.3.
  7. * File:
  8. ```
  9. /vendor/sonata-project/intl-bundle/src/Templating/Helper/DateTimeHelper.php
  10. ```
  11. * Modifications
  12. ```diff
  13. /**
  14. * @return \IntlDateFormatter
  15. */
  16. protected static function createInstance(array $args = [])
  17. {
  18. if (!self::$reflection) {
  19. self::$reflection = new \ReflectionClass('IntlDateFormatter');
  20. }
  21. + if(!is_numeric($args['timetype'])){
  22. + $args['timetype']=0;
  23. + }
  24. $instance = self::$reflection->newInstanceArgs($args);
  25. self::checkInternalClass($instance, '\IntlDateFormatter', $args);
  26. return $instance;
  27. }
  28. ````