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.
 
 
 
 
 

888 B

ISSUES to override vendor

IntlDateFormatter::__construct() expects parameter 3 to be integer, string given

  • Description:

Fail located on php7.2 but not in >7.3.

  • File:
/vendor/sonata-project/intl-bundle/src/Templating/Helper/DateTimeHelper.php
  • Modifications
 /**
     * @return \IntlDateFormatter
     */
    protected static function createInstance(array $args = [])
    {
        if (!self::$reflection) {
            self::$reflection = new \ReflectionClass('IntlDateFormatter');
        }

       + if(!is_numeric($args['timetype'])){
       +    $args['timetype']=0;
       + }
        $instance = self::$reflection->newInstanceArgs($args);

        self::checkInternalClass($instance, '\IntlDateFormatter', $args);

        return $instance;
    }