Browse Source

3.9 - Restrict DateFormatTrait::$_jsonEncodeFormat to \Closure

This matches the change made in 4.1 port.
othercorey 5 years ago
parent
commit
3c96f65ed1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/I18n/DateFormatTrait.php

+ 2 - 2
src/I18n/DateFormatTrait.php

@@ -61,7 +61,7 @@ trait DateFormatTrait
      * will be used for formatting the date part of the object and the second position
      * will be used for formatting the date part of the object and the second position
      * will be used to format the time part.
      * will be used to format the time part.
      *
      *
-     * @var string|array|int|callable
+     * @var string|array|int|\Closure
      * @see \Cake\I18n\Time::i18nFormat()
      * @see \Cake\I18n\Time::i18nFormat()
      */
      */
     protected static $_jsonEncodeFormat = "yyyy-MM-dd'T'HH':'mm':'ssxxx";
     protected static $_jsonEncodeFormat = "yyyy-MM-dd'T'HH':'mm':'ssxxx";
@@ -329,7 +329,7 @@ trait DateFormatTrait
      * can receive this datetime object and return a formatted string.
      * can receive this datetime object and return a formatted string.
      *
      *
      * @see \Cake\I18n\Time::i18nFormat()
      * @see \Cake\I18n\Time::i18nFormat()
-     * @param string|array|int|callable $format Format.
+     * @param string|array|int|\Closure $format Format.
      * @return void
      * @return void
      */
      */
     public static function setJsonEncodeFormat($format)
     public static function setJsonEncodeFormat($format)