From a1d4040f7c76b6af8d1465326aaab236f5ea5afe Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 17 Apr 2020 17:43:30 +0200 Subject: update to 0.9.0 raise dependency on PHP 7.2 fix test suite with PHP 8 using patch from https://github.com/jbboehr/php-handlebars/pull/66 skip 1 test on 32-bit reported as https://github.com/jbboehr/php-handlebars/issues/67 --- REFLECTION | 614 ++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 342 insertions(+), 272 deletions(-) (limited to 'REFLECTION') diff --git a/REFLECTION b/REFLECTION index b6a1183..439623d 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #188 handlebars version 0.8.3 ] { +Extension [ extension #113 handlebars version 0.9.0 ] { - Dependencies { Dependency [ psr (Optional) ] @@ -35,9 +35,9 @@ Extension [ extension #188 handlebars version 0.8.3 ] { } - Constants [4] { - Constant [ integer Handlebars\PSR ] { 1 } - Constant [ string Handlebars\VERSION ] { 0.8.3 } - Constant [ string Handlebars\LIBVERSION ] { 0.6.4 } + Constant [ int Handlebars\PSR ] { 1 } + Constant [ string Handlebars\VERSION ] { 0.9.0 } + Constant [ string Handlebars\LIBVERSION ] { 0.7.0 } Constant [ null Handlebars\CACHE_BACKEND ] { } } @@ -50,6 +50,218 @@ Extension [ extension #188 handlebars version 0.8.3 ] { } - Classes [19] { + Interface [ interface Handlebars\Registry extends ArrayAccess, Traversable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [4] { + Method [ abstract public method offsetExists ] { + + - Parameters [1] { + Parameter #0 [ $offset ] + } + } + + Method [ abstract public method offsetGet ] { + + - Parameters [1] { + Parameter #0 [ $offset ] + } + } + + Method [ abstract public method offsetSet ] { + + - Parameters [2] { + Parameter #0 [ $offset ] + Parameter #1 [ $value ] + } + } + + Method [ abstract public method offsetUnset ] { + + - Parameters [1] { + Parameter #0 [ $offset ] + } + } + } + } + + Class [ class Handlebars\DefaultRegistry extends ArrayObject implements Countable, Serializable, ArrayAccess, Traversable, IteratorAggregate, Handlebars\Registry ] { + + - Constants [2] { + Constant [ public int STD_PROP_LIST ] { 1 } + Constant [ public int ARRAY_AS_PROPS ] { 2 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [22] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $input ] + Parameter #1 [ $flags ] + Parameter #2 [ $iterator_class ] + } + } + + Method [ public method offsetExists ] { + + - Parameters [1] { + Parameter #0 [ $index ] + } + } + + Method [ public method offsetGet ] { + + - Parameters [1] { + Parameter #0 [ $index ] + } + } + + Method [ public method offsetSet ] { + + - Parameters [2] { + Parameter #0 [ $index ] + Parameter #1 [ $newval ] + } + } + + Method [ public method offsetUnset ] { + + - Parameters [1] { + Parameter #0 [ $index ] + } + } + + Method [ public method append ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + } + + Method [ public method getArrayCopy ] { + + - Parameters [0] { + } + } + + Method [ public method count ] { + + - Parameters [0] { + } + } + + Method [ public method getFlags ] { + + - Parameters [0] { + } + } + + Method [ public method setFlags ] { + + - Parameters [1] { + Parameter #0 [ $flags ] + } + } + + Method [ public method asort ] { + + - Parameters [0] { + } + } + + Method [ public method ksort ] { + + - Parameters [0] { + } + } + + Method [ public method uasort ] { + + - Parameters [1] { + Parameter #0 [ $cmp_function ] + } + } + + Method [ public method uksort ] { + + - Parameters [1] { + Parameter #0 [ $cmp_function ] + } + } + + Method [ public method natsort ] { + + - Parameters [0] { + } + } + + Method [ public method natcasesort ] { + + - Parameters [0] { + } + } + + Method [ public method unserialize ] { + + - Parameters [1] { + Parameter #0 [ $serialized ] + } + } + + Method [ public method serialize ] { + + - Parameters [0] { + } + } + + Method [ public method getIterator ] { + + - Parameters [0] { + } + } + + Method [ public method exchangeArray ] { + + - Parameters [1] { + Parameter #0 [ $array ] + } + } + + Method [ public method setIteratorClass ] { + + - Parameters [1] { + Parameter #0 [ $iteratorClass ] + } + } + + Method [ public method getIteratorClass ] { + + - Parameters [0] { + } + } + } + } + Interface [ interface Handlebars\Impl extends Psr\Log\LoggerAwareInterface ] { - Constants [0] { @@ -69,24 +281,28 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [0] { } + - Return [ Handlebars\Registry or NULL ] } Method [ abstract public method getPartials ] { - Parameters [0] { } + - Return [ Handlebars\Registry or NULL ] } Method [ abstract public method getDecorators ] { - Parameters [0] { } + - Return [ Handlebars\Registry or NULL ] } Method [ abstract public method getLogger ] { - Parameters [0] { } + - Return [ Psr\Logger\LoggerInterface or NULL ] } Method [ abstract public method setHelpers ] { @@ -94,6 +310,7 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [1] { Parameter #0 [ Handlebars\Registry $helpers ] } + - Return [ Handlebars\Impl ] } Method [ abstract public method setPartials ] { @@ -101,13 +318,15 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [1] { Parameter #0 [ Handlebars\Registry $partials ] } + - Return [ Handlebars\Impl ] } Method [ abstract public method setDecorators ] { - Parameters [1] { - Parameter #0 [ Handlebars\Registry $partials ] + Parameter #0 [ Handlebars\Registry $decorators ] } + - Return [ Handlebars\Impl ] } Method [ abstract public method setLogger ] { @@ -115,24 +334,27 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [1] { Parameter #0 [ Psr\Log\LoggerInterface $logger ] } + - Return [ Handlebars\Impl ] } Method [ abstract public method render ] { - Parameters [3] { - Parameter #0 [ $tmpl ] + Parameter #0 [ string $tmpl ] Parameter #1 [ $context ] Parameter #2 [ array or NULL $options ] } + - Return [ string ] } Method [ abstract public method renderFile ] { - Parameters [3] { - Parameter #0 [ $filename ] + Parameter #0 [ string $filename ] Parameter #1 [ $context ] Parameter #2 [ array or NULL $options ] } + - Return [ string ] } } } @@ -149,10 +371,10 @@ Extension [ extension #188 handlebars version 0.8.3 ] { } - Properties [4] { + Property [ protected $logger ] + Property [ protected $decorators ] Property [ protected $helpers ] Property [ protected $partials ] - Property [ protected $decorators ] - Property [ protected $logger ] } - Methods [10] { @@ -160,24 +382,28 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [0] { } + - Return [ Handlebars\Registry or NULL ] } Method [ public method getPartials ] { - Parameters [0] { } + - Return [ Handlebars\Registry or NULL ] } Method [ public method getDecorators ] { - Parameters [0] { } + - Return [ Handlebars\Registry or NULL ] } Method [ public method getLogger ] { - Parameters [0] { } + - Return [ Psr\Logger\LoggerInterface or NULL ] } Method [ public method setHelpers ] { @@ -185,6 +411,7 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [1] { Parameter #0 [ Handlebars\Registry $helpers ] } + - Return [ Handlebars\Impl ] } Method [ public method setPartials ] { @@ -192,13 +419,15 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [1] { Parameter #0 [ Handlebars\Registry $partials ] } + - Return [ Handlebars\Impl ] } Method [ public method setDecorators ] { - Parameters [1] { - Parameter #0 [ Handlebars\Registry $partials ] + Parameter #0 [ Handlebars\Registry $decorators ] } + - Return [ Handlebars\Impl ] } Method [ public method setLogger ] { @@ -206,49 +435,53 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [1] { Parameter #0 [ Psr\Log\LoggerInterface $logger ] } + - Return [ Handlebars\Impl ] } Method [ abstract public method render ] { - Parameters [3] { - Parameter #0 [ $tmpl ] + Parameter #0 [ string $tmpl ] Parameter #1 [ $context ] Parameter #2 [ array or NULL $options ] } + - Return [ string ] } Method [ abstract public method renderFile ] { - Parameters [3] { - Parameter #0 [ $filename ] + Parameter #0 [ string $filename ] Parameter #1 [ $context ] Parameter #2 [ array or NULL $options ] } + - Return [ string ] } } } Class [ class Handlebars\Compiler ] { - - Constants [18] { - Constant [ public integer NONE ] { 0 } - Constant [ public integer USE_DEPTHS ] { 1 } - Constant [ public integer STRING_PARAMS ] { 2 } - Constant [ public integer TRACK_IDS ] { 4 } - Constant [ public integer NO_ESCAPE ] { 8 } - Constant [ public integer KNOWN_HELPERS_ONLY ] { 16 } - Constant [ public integer PREVENT_INDENT ] { 32 } - Constant [ public integer EXPLICIT_PARTIAL_CONTEXT ] { 128 } - Constant [ public integer IGNORE_STANDALONE ] { 256 } - Constant [ public integer ALTERNATE_DECORATORS ] { 512 } - Constant [ public integer STRICT ] { 1024 } - Constant [ public integer ASSUME_OBJECTS ] { 2048 } - Constant [ public integer COMPAT ] { 1 } - Constant [ public integer ALL ] { 4095 } - Constant [ public integer USE_PARTIAL ] { 2 } - Constant [ public integer IS_SIMPLE ] { 4 } - Constant [ public integer USE_DECORATORS ] { 8 } - Constant [ public integer RESULT_ALL ] { 15 } + - Constants [19] { + Constant [ public int NONE ] { 0 } + Constant [ public int USE_DEPTHS ] { 1 } + Constant [ public int STRING_PARAMS ] { 2 } + Constant [ public int TRACK_IDS ] { 4 } + Constant [ public int NO_ESCAPE ] { 8 } + Constant [ public int KNOWN_HELPERS_ONLY ] { 16 } + Constant [ public int PREVENT_INDENT ] { 32 } + Constant [ public int EXPLICIT_PARTIAL_CONTEXT ] { 128 } + Constant [ public int IGNORE_STANDALONE ] { 256 } + Constant [ public int ALTERNATE_DECORATORS ] { 512 } + Constant [ public int STRICT ] { 1024 } + Constant [ public int ASSUME_OBJECTS ] { 2048 } + Constant [ public int MUSTACHE_STYLE_LAMBDAS ] { 4096 } + Constant [ public int COMPAT ] { 1 } + Constant [ public int ALL ] { 8191 } + Constant [ public int USE_PARTIAL ] { 2 } + Constant [ public int IS_SIMPLE ] { 4 } + Constant [ public int USE_DECORATORS ] { 8 } + Constant [ public int RESULT_ALL ] { 15 } } - Static properties [0] { @@ -258,17 +491,19 @@ Extension [ extension #188 handlebars version 0.8.3 ] { Method [ static public method compile ] { - Parameters [2] { - Parameter #0 [ $tmpl ] - Parameter #1 [ $options ] + Parameter #0 [ string $tmpl ] + Parameter #1 [ array or NULL $options ] } + - Return [ array ] } Method [ static public method compilePrint ] { - Parameters [2] { - Parameter #0 [ $tmpl ] - Parameter #1 [ $options ] + Parameter #0 [ string $tmpl ] + Parameter #1 [ array or NULL $options ] } + - Return [ string ] } } @@ -297,7 +532,7 @@ Extension [ extension #188 handlebars version 0.8.3 ] { } } - Class [ class Handlebars\ParseException extends Exception implements Throwable, Handlebars\Exception ] { + Class [ class Handlebars\CompileException extends Exception implements Throwable, Handlebars\Exception ] { - Constants [0] { } @@ -354,7 +589,7 @@ Extension [ extension #188 handlebars version 0.8.3 ] { } } - Class [ class Handlebars\CompileException extends Exception implements Throwable, Handlebars\Exception ] { + Class [ class Handlebars\InvalidArgumentException extends RuntimeException implements Throwable, Handlebars\Exception ] { - Constants [0] { } @@ -411,7 +646,7 @@ Extension [ extension #188 handlebars version 0.8.3 ] { } } - Class [ class Handlebars\InvalidArgumentException extends RuntimeException implements Throwable, Handlebars\Exception ] { + Class [ class Handlebars\RuntimeException extends RuntimeException implements Throwable, Handlebars\Exception ] { - Constants [0] { } @@ -468,7 +703,7 @@ Extension [ extension #188 handlebars version 0.8.3 ] { } } - Class [ class Handlebars\RuntimeException extends RuntimeException implements Throwable, Handlebars\Exception ] { + Class [ class Handlebars\InvalidBinaryStringException extends Exception implements Throwable, Handlebars\Exception ] { - Constants [0] { } @@ -545,8 +780,8 @@ Extension [ extension #188 handlebars version 0.8.3 ] { Method [ public method __construct ] { - Parameters [2] { - Parameter #0 [ $opcode ] - Parameter #1 [ $args ] + Parameter #0 [ string $opcode ] + Parameter #1 [ array $args ] } } } @@ -583,9 +818,15 @@ Extension [ extension #188 handlebars version 0.8.3 ] { } Method [ public method fn ] { + + - Parameters [0] { + } } Method [ public method inverse ] { + + - Parameters [0] { + } } Method [ public method offsetExists ] { @@ -631,15 +872,17 @@ Extension [ extension #188 handlebars version 0.8.3 ] { Method [ static public method parse ] { - Parameters [1] { - Parameter #0 [ $tmpl ] + Parameter #0 [ string $tmpl ] } + - Return [ array ] } Method [ static public method parsePrint ] { - Parameters [1] { - Parameter #0 [ $tmpl ] + Parameter #0 [ string $tmpl ] } + - Return [ string ] } } @@ -680,219 +923,7 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [3] { Parameter #0 [ array $opcodes ] Parameter #1 [ array $children ] - Parameter #2 [ $blockParams ] - } - } - } - } - - Interface [ interface Handlebars\Registry extends ArrayAccess, Traversable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [4] { - Method [ abstract public method offsetExists ] { - - - Parameters [1] { - Parameter #0 [ $offset ] - } - } - - Method [ abstract public method offsetGet ] { - - - Parameters [1] { - Parameter #0 [ $offset ] - } - } - - Method [ abstract public method offsetSet ] { - - - Parameters [2] { - Parameter #0 [ $offset ] - Parameter #1 [ $value ] - } - } - - Method [ abstract public method offsetUnset ] { - - - Parameters [1] { - Parameter #0 [ $offset ] - } - } - } - } - - Class [ class Handlebars\DefaultRegistry extends ArrayObject implements Countable, Serializable, ArrayAccess, Traversable, IteratorAggregate, Handlebars\Registry ] { - - - Constants [2] { - Constant [ public integer STD_PROP_LIST ] { 1 } - Constant [ public integer ARRAY_AS_PROPS ] { 2 } - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [22] { - Method [ public method __construct ] { - - - Parameters [3] { - Parameter #0 [ $input ] - Parameter #1 [ $flags ] - Parameter #2 [ $iterator_class ] - } - } - - Method [ public method offsetExists ] { - - - Parameters [1] { - Parameter #0 [ $index ] - } - } - - Method [ public method offsetGet ] { - - - Parameters [1] { - Parameter #0 [ $index ] - } - } - - Method [ public method offsetSet ] { - - - Parameters [2] { - Parameter #0 [ $index ] - Parameter #1 [ $newval ] - } - } - - Method [ public method offsetUnset ] { - - - Parameters [1] { - Parameter #0 [ $index ] - } - } - - Method [ public method append ] { - - - Parameters [1] { - Parameter #0 [ $value ] - } - } - - Method [ public method getArrayCopy ] { - - - Parameters [0] { - } - } - - Method [ public method count ] { - - - Parameters [0] { - } - } - - Method [ public method getFlags ] { - - - Parameters [0] { - } - } - - Method [ public method setFlags ] { - - - Parameters [1] { - Parameter #0 [ $flags ] - } - } - - Method [ public method asort ] { - - - Parameters [0] { - } - } - - Method [ public method ksort ] { - - - Parameters [0] { - } - } - - Method [ public method uasort ] { - - - Parameters [1] { - Parameter #0 [ $cmp_function ] - } - } - - Method [ public method uksort ] { - - - Parameters [1] { - Parameter #0 [ $cmp_function ] - } - } - - Method [ public method natsort ] { - - - Parameters [0] { - } - } - - Method [ public method natcasesort ] { - - - Parameters [0] { - } - } - - Method [ public method unserialize ] { - - - Parameters [1] { - Parameter #0 [ $serialized ] - } - } - - Method [ public method serialize ] { - - - Parameters [0] { - } - } - - Method [ public method getIterator ] { - - - Parameters [0] { - } - } - - Method [ public method exchangeArray ] { - - - Parameters [1] { - Parameter #0 [ $array ] - } - } - - Method [ public method setIteratorClass ] { - - - Parameters [1] { - Parameter #0 [ $iteratorClass ] - } - } - - Method [ public method getIteratorClass ] { - - - Parameters [0] { + Parameter #2 [ int $blockParams ] } } } @@ -917,7 +948,7 @@ Extension [ extension #188 handlebars version 0.8.3 ] { Method [ public method __construct ] { - Parameters [1] { - Parameter #0 [ $value ] + Parameter #0 [ string $value ] } } @@ -925,6 +956,7 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [0] { } + - Return [ string ] } } } @@ -949,8 +981,8 @@ Extension [ extension #188 handlebars version 0.8.3 ] { Method [ public method __construct ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $text ] + Parameter #0 [ string $name ] + Parameter #1 [ string $text ] } } } @@ -968,15 +1000,17 @@ Extension [ extension #188 handlebars version 0.8.3 ] { Method [ static public method lex ] { - Parameters [1] { - Parameter #0 [ $tmpl ] + Parameter #0 [ string $tmpl ] } + - Return [ array ] } Method [ static public method lexPrint ] { - Parameters [1] { - Parameter #0 [ $tmpl ] + Parameter #0 [ string $tmpl ] } + - Return [ string ] } } @@ -1000,8 +1034,9 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [2] { Parameter #0 [ $contextPath ] - Parameter #1 [ $id ] + Parameter #1 [ string $id ] } + - Return [ string ] } Method [ static public method createFrame ] { @@ -1015,16 +1050,17 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [2] { Parameter #0 [ $objOrArray ] - Parameter #1 [ $field ] + Parameter #1 [ string $field ] } } Method [ static public method indent ] { - Parameters [2] { - Parameter #0 [ $str ] - Parameter #1 [ $indent ] + Parameter #0 [ string $str ] + Parameter #1 [ string $indent ] } + - Return [ string ] } Method [ static public method isCallable ] { @@ -1032,13 +1068,15 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [1] { Parameter #0 [ $name ] } + - Return [ bool ] } Method [ static public method isIntArray ] { - Parameters [1] { - Parameter #0 [ $arr ] + Parameter #0 [ array $arr ] } + - Return [ bool ] } Method [ static public method expression ] { @@ -1046,6 +1084,7 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [1] { Parameter #0 [ $value ] } + - Return [ string ] } Method [ static public method escapeExpression ] { @@ -1053,6 +1092,7 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [1] { Parameter #0 [ $value ] } + - Return [ string ] } Method [ static public method escapeExpressionCompat ] { @@ -1060,6 +1100,7 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [1] { Parameter #0 [ $value ] } + - Return [ string ] } } @@ -1082,13 +1123,13 @@ Extension [ extension #188 handlebars version 0.8.3 ] { } - Properties [4] { + Property [ protected $logger ] + Property [ protected $decorators ] Property [ protected $helpers ] Property [ protected $partials ] - Property [ protected $decorators ] - Property [ protected $logger ] } - - Methods [11] { + - Methods [13] { Method [ public method __construct ] { - Parameters [1] { @@ -1101,6 +1142,7 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [1] { Parameter #0 [ Handlebars\Registry $helpers ] } + - Return [ Handlebars\Impl ] } Method [ public method setPartials ] { @@ -1108,55 +1150,82 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [1] { Parameter #0 [ Handlebars\Registry $partials ] } + - Return [ Handlebars\Impl ] + } + + Method [ public method compile ] { + + - Parameters [2] { + Parameter #0 [ string $tmpl ] + Parameter #1 [ array or NULL $options ] + } + - Return [ string ] } Method [ public method render ] { - Parameters [3] { - Parameter #0 [ $tmpl ] + Parameter #0 [ string $tmpl ] Parameter #1 [ $context ] Parameter #2 [ array or NULL $options ] } + - Return [ string ] } Method [ public method renderFile ] { - Parameters [3] { - Parameter #0 [ $filename ] + Parameter #0 [ string $filename ] + Parameter #1 [ $context ] + Parameter #2 [ array or NULL $options ] + } + - Return [ string ] + } + + Method [ public method renderFromBinaryString ] { + + - Parameters [3] { + Parameter #0 [ string $binaryString ] Parameter #1 [ $context ] Parameter #2 [ array or NULL $options ] } + - Return [ string ] } Method [ public method getHelpers ] { - Parameters [0] { } + - Return [ Handlebars\Registry or NULL ] } Method [ public method getPartials ] { - Parameters [0] { } + - Return [ Handlebars\Registry or NULL ] } Method [ public method getDecorators ] { - Parameters [0] { } + - Return [ Handlebars\Registry or NULL ] } Method [ public method getLogger ] { - Parameters [0] { } + - Return [ Psr\Logger\LoggerInterface or NULL ] } Method [ public method setDecorators ] { - Parameters [1] { - Parameter #0 [ Handlebars\Registry $partials ] + Parameter #0 [ Handlebars\Registry $decorators ] } + - Return [ Handlebars\Impl ] } Method [ public method setLogger ] { @@ -1164,6 +1233,7 @@ Extension [ extension #188 handlebars version 0.8.3 ] { - Parameters [1] { Parameter #0 [ Psr\Log\LoggerInterface $logger ] } + - Return [ Handlebars\Impl ] } } } -- cgit