gulp-phug 1.3.3 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +23 -8
- package/package.json +4 -4
- package/support/composer.json +1 -1
- package/support/composer.lock +93 -178
- package/support/vendor/autoload.php +15 -0
- package/support/vendor/bin/phug +119 -0
- package/support/vendor/bin/var-dump-server +119 -0
- package/support/vendor/composer/ClassLoader.php +166 -32
- package/support/vendor/composer/InstalledVersions.php +387 -329
- package/support/vendor/composer/autoload_classmap.php +1 -5
- package/support/vendor/composer/autoload_files.php +2 -3
- package/support/vendor/composer/autoload_namespaces.php +1 -1
- package/support/vendor/composer/autoload_psr4.php +3 -4
- package/support/vendor/composer/autoload_real.php +12 -37
- package/support/vendor/composer/autoload_static.php +6 -17
- package/support/vendor/composer/installed.json +97 -184
- package/support/vendor/composer/installed.php +129 -151
- package/support/vendor/composer/platform_check.php +16 -4
- package/support/vendor/phug/phug/.github/workflows/coverage.yml +71 -0
- package/support/vendor/phug/phug/.github/workflows/multi-tester.yml +46 -0
- package/support/vendor/phug/phug/.github/workflows/split.yml +41 -0
- package/support/vendor/phug/phug/.github/workflows/style.yml +48 -0
- package/support/vendor/phug/phug/.github/workflows/tests.yml +49 -0
- package/support/vendor/phug/phug/.multi-tester.yml +42 -10
- package/support/vendor/phug/phug/composer.json +25 -16
- package/support/vendor/phug/phug/phpcs.xml +4 -0
- package/support/vendor/phug/phug/phpunit.xml +2 -0
- package/support/vendor/phug/phug/phug +1 -1
- package/support/vendor/phug/phug/release.php +8 -0
- package/support/vendor/phug/phug/src/Phug/Ast/Ast/Node.php +7 -1
- package/support/vendor/phug/phug/src/Phug/Ast/composer.json +1 -2
- package/support/vendor/phug/phug/src/Phug/Compiler/Compiler/Element/BlockElement.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Compiler/Compiler/NodeCompiler/AssignmentNodeCompiler.php +9 -1
- package/support/vendor/phug/phug/src/Phug/Compiler/Compiler/NodeCompiler/AttributeNodeCompiler.php +1 -0
- package/support/vendor/phug/phug/src/Phug/Compiler/Compiler/NodeCompiler/ElementNodeCompiler.php +6 -0
- package/support/vendor/phug/phug/src/Phug/Compiler/Compiler/NodeCompiler/ImportNodeCompiler.php +4 -4
- package/support/vendor/phug/phug/src/Phug/Compiler/Compiler/NodeCompilerInterface.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Compiler/composer.json +5 -2
- package/support/vendor/phug/phug/src/Phug/DependencyInjection/DependencyInjection.php +1 -1
- package/support/vendor/phug/phug/src/Phug/DependencyInjection/composer.json +1 -2
- package/support/vendor/phug/phug/src/Phug/Event/Event/ListenerQueue.php +3 -0
- package/support/vendor/phug/phug/src/Phug/Event/EventManagerTrait.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Event/composer.json +1 -2
- package/support/vendor/phug/phug/src/Phug/Formatter/Formatter/AbstractFormat.php +15 -12
- package/support/vendor/phug/phug/src/Phug/Formatter/Formatter/AssignmentContainerInterface.php +2 -1
- package/support/vendor/phug/phug/src/Phug/Formatter/Formatter/Element/AbstractAssignmentContainerElement.php +11 -1
- package/support/vendor/phug/phug/src/Phug/Formatter/Formatter/Element/AbstractMarkupElement.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Formatter/Formatter/Element/AssignmentElement.php +9 -4
- package/support/vendor/phug/phug/src/Phug/Formatter/Formatter/Element/AttributeElement.php +4 -1
- package/support/vendor/phug/phug/src/Phug/Formatter/Formatter/Element/CodeElement.php +2 -2
- package/support/vendor/phug/phug/src/Phug/Formatter/Formatter/Element/MarkupElement.php +10 -8
- package/support/vendor/phug/phug/src/Phug/Formatter/Formatter/Element/MixinCallElement.php +2 -1
- package/support/vendor/phug/phug/src/Phug/Formatter/Formatter/Element/MixinElement.php +2 -1
- package/support/vendor/phug/phug/src/Phug/Formatter/Formatter/Format/XmlFormat.php +213 -20
- package/support/vendor/phug/phug/src/Phug/Formatter/Formatter/Partial/AssignmentHelpersTrait.php +7 -4
- package/support/vendor/phug/phug/src/Phug/Formatter/Formatter/Partial/HandleVariable.php +4 -4
- package/support/vendor/phug/phug/src/Phug/Formatter/Formatter/Partial/MagicAccessorTrait.php +1 -7
- package/support/vendor/phug/phug/src/Phug/Formatter/Formatter.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Formatter/composer.json +1 -2
- package/support/vendor/phug/phug/src/Phug/Invoker/Invoker.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Invoker/composer.json +5 -2
- package/support/vendor/phug/phug/src/Phug/Lexer/Lexer/Partial/IndentStyleTrait.php +5 -5
- package/support/vendor/phug/phug/src/Phug/Lexer/Lexer/Scanner/AssignmentScanner.php +8 -2
- package/support/vendor/phug/phug/src/Phug/Lexer/Lexer/Scanner/AttributeScanner.php +23 -11
- package/support/vendor/phug/phug/src/Phug/Lexer/Lexer/Scanner/ConditionalScanner.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Lexer/Lexer/Scanner/FilterScanner.php +6 -10
- package/support/vendor/phug/phug/src/Phug/Lexer/Lexer/Scanner/IndentationScanner.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Lexer/Lexer/Scanner/KeywordScanner.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Lexer/Lexer/Scanner/MultilineScanner.php +6 -12
- package/support/vendor/phug/phug/src/Phug/Lexer/Lexer/Scanner/Partial/TrailingOutdentHandlerTrait.php +26 -0
- package/support/vendor/phug/phug/src/Phug/Lexer/Lexer/Scanner/TextScanner.php +3 -3
- package/support/vendor/phug/phug/src/Phug/Lexer/Lexer/State.php +9 -9
- package/support/vendor/phug/phug/src/Phug/Lexer/composer.json +1 -2
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/Event/NodeEvent.php +3 -2
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/Node/AssignmentNode.php +5 -1
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/Node/AttributeNode.php +4 -1
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/Node/ElementNode.php +5 -1
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/Node/FilterNode.php +2 -1
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/Node/MixinCallNode.php +5 -1
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/Node/MixinNode.php +5 -1
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/AbstractTokenHandler.php +87 -0
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/AssignmentTokenHandler.php +6 -21
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/AttributeEndTokenHandler.php +5 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/AttributeStartTokenHandler.php +7 -23
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/AttributeTokenHandler.php +21 -19
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/AutoCloseTokenHandler.php +5 -17
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/BlockTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/CaseTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/ClassTokenHandler.php +7 -34
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/CodeTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/CommentTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/ConditionalTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/DoTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/DoctypeTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/EachTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/ExpansionTokenHandler.php +5 -11
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/ExpressionTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/FilterTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/ForTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/IdTokenHandler.php +7 -33
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/ImportTokenHandler.php +14 -20
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/IndentTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/InterpolationEndTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/InterpolationStartTokenHandler.php +29 -30
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/KeywordTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/MixinCallTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/MixinTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/NewLineTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/OutdentTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/Partial/StaticAttributeTrait.php +36 -0
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/TagInterpolationEndTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/TagInterpolationStartTokenHandler.php +7 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/TagTokenHandler.php +6 -21
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/TextTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/VariableTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/WhenTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/WhileTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/YieldTokenHandler.php +4 -10
- package/support/vendor/phug/phug/src/Phug/Parser/Parser.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Parser/composer.json +1 -2
- package/support/vendor/phug/phug/src/Phug/Phug/Phug/Cli.php +5 -5
- package/support/vendor/phug/phug/src/Phug/Phug/Phug/Partial/ExtensionsTrait.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Phug/Phug/Partial/FacadeOptionsTrait.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Phug/Phug/Phug.php +14 -5
- package/support/vendor/phug/phug/src/Phug/Phug/composer.json +5 -2
- package/support/vendor/phug/phug/src/Phug/Reader/Reader.php +9 -9
- package/support/vendor/phug/phug/src/Phug/Reader/composer.json +4 -0
- package/support/vendor/phug/phug/src/Phug/Renderer/Renderer/Adapter/FileAdapter.php +21 -4
- package/support/vendor/phug/phug/src/Phug/Renderer/Renderer/Adapter/Stream/Template.php +5 -0
- package/support/vendor/phug/phug/src/Phug/Renderer/Renderer/Adapter/StreamAdapter.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Renderer/Renderer/CacheInterface.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Renderer/Renderer/Partial/AdapterTrait.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Renderer/Renderer/Partial/Debug/DebuggerTrait.php +56 -10
- package/support/vendor/phug/phug/src/Phug/Renderer/Renderer/Partial/RendererOptionsTrait.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Renderer/Renderer/Profiler/Dump.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Renderer/Renderer/Profiler/LinkDump.php +2 -2
- package/support/vendor/phug/phug/src/Phug/Renderer/Renderer/Profiler/ProfilerModule.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Renderer/composer.json +7 -3
- package/support/vendor/phug/phug/src/Phug/Util/CompatibilityUtil/TestCaseTyped.php +67 -0
- package/support/vendor/phug/phug/src/Phug/Util/CompatibilityUtil/TestCaseUntyped.php +67 -0
- package/support/vendor/phug/phug/src/Phug/Util/Util/AttributesInterface.php +16 -0
- package/support/vendor/phug/phug/src/Phug/Util/Util/AttributesOrderInterface.php +17 -0
- package/support/vendor/phug/phug/src/Phug/Util/Util/AttributesStorage.php +44 -0
- package/support/vendor/phug/phug/src/Phug/Util/Util/Collection.php +2 -0
- package/support/vendor/phug/phug/src/Phug/Util/Util/OrderableInterface.php +22 -0
- package/support/vendor/phug/phug/src/Phug/Util/Util/OrderedValue.php +25 -0
- package/support/vendor/phug/phug/src/Phug/Util/Util/Partial/AttributeTrait.php +2 -1
- package/support/vendor/phug/phug/src/Phug/Util/Util/Partial/AttributesOrderTrait.php +19 -0
- package/support/vendor/phug/phug/src/Phug/Util/Util/Partial/ModuleContainerTrait.php +3 -3
- package/support/vendor/phug/phug/src/Phug/Util/Util/Partial/OptionTrait.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Util/Util/Partial/OrderTrait.php +27 -0
- package/support/vendor/phug/phug/src/Phug/Util/Util/Partial/StaticMemberTrait.php +1 -1
- package/support/vendor/phug/phug/src/Phug/Util/Util/Partial/ValueTrait.php +5 -3
- package/support/vendor/phug/phug/src/Phug/Util/Util/SandBox.php +1 -0
- package/support/vendor/phug/phug/src/Phug/Util/Util/TestCase.php +47 -4
- package/support/vendor/phug/phug/src/Phug/Util/composer.json +5 -6
- package/support/vendor/symfony/deprecation-contracts/CHANGELOG.md +5 -0
- package/support/vendor/symfony/{polyfill-php72 → deprecation-contracts}/LICENSE +1 -1
- package/support/vendor/symfony/deprecation-contracts/README.md +26 -0
- package/support/vendor/symfony/{polyfill-php72 → deprecation-contracts}/composer.json +9 -9
- package/support/vendor/symfony/deprecation-contracts/function.php +27 -0
- package/support/vendor/symfony/polyfill-mbstring/LICENSE +1 -1
- package/support/vendor/symfony/polyfill-mbstring/Mbstring.php +256 -57
- package/support/vendor/symfony/polyfill-mbstring/README.md +1 -1
- package/support/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php +119 -0
- package/support/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +1 -1
- package/support/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +102 -27
- package/support/vendor/symfony/polyfill-mbstring/bootstrap.php +33 -8
- package/support/vendor/symfony/polyfill-mbstring/bootstrap80.php +167 -0
- package/support/vendor/symfony/polyfill-mbstring/composer.json +5 -4
- package/support/vendor/symfony/var-dumper/CHANGELOG.md +63 -0
- package/support/vendor/symfony/var-dumper/Caster/AddressInfoCaster.php +82 -0
- package/support/vendor/symfony/var-dumper/Caster/AmqpCaster.php +12 -10
- package/support/vendor/symfony/var-dumper/Caster/ArgsStub.php +6 -7
- package/support/vendor/symfony/var-dumper/Caster/Caster.php +59 -31
- package/support/vendor/symfony/var-dumper/Caster/ClassStub.php +7 -9
- package/support/vendor/symfony/var-dumper/Caster/ConstStub.php +20 -4
- package/support/vendor/symfony/var-dumper/Caster/CurlCaster.php +31 -0
- package/support/vendor/symfony/var-dumper/Caster/CutArrayStub.php +1 -1
- package/support/vendor/symfony/var-dumper/Caster/CutStub.php +2 -2
- package/support/vendor/symfony/var-dumper/Caster/DOMCaster.php +61 -156
- package/support/vendor/symfony/var-dumper/Caster/DateCaster.php +27 -26
- package/support/vendor/symfony/var-dumper/Caster/DoctrineCaster.php +6 -4
- package/support/vendor/symfony/var-dumper/Caster/DsCaster.php +1 -1
- package/support/vendor/symfony/var-dumper/Caster/DsPairStub.php +1 -1
- package/support/vendor/symfony/var-dumper/Caster/EnumStub.php +4 -5
- package/support/vendor/symfony/var-dumper/Caster/ExceptionCaster.php +64 -49
- package/support/vendor/symfony/var-dumper/Caster/FFICaster.php +171 -0
- package/support/vendor/symfony/var-dumper/Caster/FiberCaster.php +43 -0
- package/support/vendor/symfony/var-dumper/Caster/FrameStub.php +6 -8
- package/support/vendor/symfony/var-dumper/Caster/GdCaster.php +30 -0
- package/support/vendor/symfony/var-dumper/Caster/GmpCaster.php +4 -2
- package/support/vendor/symfony/var-dumper/Caster/ImagineCaster.php +2 -0
- package/support/vendor/symfony/var-dumper/Caster/ImgStub.php +1 -1
- package/support/vendor/symfony/var-dumper/Caster/IntlCaster.php +10 -8
- package/support/vendor/symfony/var-dumper/Caster/LinkStub.php +14 -17
- package/support/vendor/symfony/var-dumper/Caster/MemcachedCaster.php +10 -8
- package/support/vendor/symfony/var-dumper/Caster/MysqliCaster.php +33 -0
- package/support/vendor/symfony/var-dumper/Caster/OpenSSLCaster.php +69 -0
- package/support/vendor/symfony/var-dumper/Caster/PdoCaster.php +8 -6
- package/support/vendor/symfony/var-dumper/Caster/PgSqlCaster.php +21 -19
- package/support/vendor/symfony/var-dumper/Caster/ProxyManagerCaster.php +4 -2
- package/support/vendor/symfony/var-dumper/Caster/RdKafkaCaster.php +188 -0
- package/support/vendor/symfony/var-dumper/Caster/RedisCaster.php +31 -31
- package/support/vendor/symfony/var-dumper/Caster/ReflectionCaster.php +100 -44
- package/support/vendor/symfony/var-dumper/Caster/ResourceCaster.php +33 -46
- package/support/vendor/symfony/var-dumper/Caster/ScalarStub.php +27 -0
- package/support/vendor/symfony/var-dumper/Caster/SocketCaster.php +64 -0
- package/support/vendor/symfony/var-dumper/Caster/SplCaster.php +57 -44
- package/support/vendor/symfony/var-dumper/Caster/SqliteCaster.php +32 -0
- package/support/vendor/symfony/var-dumper/Caster/StubCaster.php +15 -5
- package/support/vendor/symfony/var-dumper/Caster/SymfonyCaster.php +66 -10
- package/support/vendor/symfony/var-dumper/Caster/TraceStub.php +7 -11
- package/support/vendor/symfony/var-dumper/Caster/UninitializedStub.php +25 -0
- package/support/vendor/symfony/var-dumper/Caster/UuidCaster.php +2 -0
- package/support/vendor/symfony/var-dumper/Caster/VirtualStub.php +21 -0
- package/support/vendor/symfony/var-dumper/Caster/XmlReaderCaster.php +25 -10
- package/support/vendor/symfony/var-dumper/Caster/XmlResourceCaster.php +7 -5
- package/support/vendor/symfony/var-dumper/Cloner/AbstractCloner.php +103 -72
- package/support/vendor/symfony/var-dumper/Cloner/ClonerInterface.php +1 -5
- package/support/vendor/symfony/var-dumper/Cloner/Cursor.php +21 -21
- package/support/vendor/symfony/var-dumper/Cloner/Data.php +51 -77
- package/support/vendor/symfony/var-dumper/Cloner/DumperInterface.php +11 -14
- package/support/vendor/symfony/var-dumper/Cloner/Stub.php +40 -31
- package/support/vendor/symfony/var-dumper/Cloner/VarCloner.php +21 -104
- package/support/vendor/symfony/var-dumper/Command/Descriptor/CliDescriptor.php +9 -19
- package/support/vendor/symfony/var-dumper/Command/Descriptor/HtmlDescriptor.php +10 -11
- package/support/vendor/symfony/var-dumper/Command/ServerDumpCommand.php +27 -15
- package/support/vendor/symfony/var-dumper/Dumper/AbstractDumper.php +68 -48
- package/support/vendor/symfony/var-dumper/Dumper/CliDumper.php +126 -113
- package/support/vendor/symfony/var-dumper/Dumper/ContextProvider/CliContextProvider.php +1 -1
- package/support/vendor/symfony/var-dumper/Dumper/ContextProvider/ContextProviderInterface.php +0 -3
- package/support/vendor/symfony/var-dumper/Dumper/ContextProvider/RequestContextProvider.php +5 -6
- package/support/vendor/symfony/var-dumper/Dumper/ContextProvider/SourceContextProvider.php +10 -15
- package/support/vendor/symfony/var-dumper/Dumper/ContextualizedDumper.php +8 -11
- package/support/vendor/symfony/var-dumper/Dumper/DataDumperInterface.php +3 -0
- package/support/vendor/symfony/var-dumper/Dumper/HtmlDumper.php +122 -146
- package/support/vendor/symfony/var-dumper/Dumper/ServerDumper.php +10 -10
- package/support/vendor/symfony/var-dumper/Exception/ThrowingCasterException.php +1 -1
- package/support/vendor/symfony/var-dumper/LICENSE +1 -1
- package/support/vendor/symfony/var-dumper/README.md +6 -6
- package/support/vendor/symfony/var-dumper/Resources/bin/var-dump-server +4 -0
- package/support/vendor/symfony/var-dumper/Resources/functions/dump.php +35 -10
- package/support/vendor/symfony/var-dumper/Server/Connection.php +16 -14
- package/support/vendor/symfony/var-dumper/Server/DumpServer.php +16 -14
- package/support/vendor/symfony/var-dumper/Test/VarDumperTestTrait.php +9 -9
- package/support/vendor/symfony/var-dumper/VarDumper.php +69 -17
- package/support/vendor/symfony/var-dumper/composer.json +10 -16
- package/support/vendor/symfony/polyfill-php72/Php72.php +0 -217
- package/support/vendor/symfony/polyfill-php72/README.md +0 -28
- package/support/vendor/symfony/polyfill-php72/bootstrap.php +0 -57
- package/support/vendor/symfony/polyfill-php80/LICENSE +0 -19
- package/support/vendor/symfony/polyfill-php80/Php80.php +0 -105
- package/support/vendor/symfony/polyfill-php80/README.md +0 -24
- package/support/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php +0 -22
- package/support/vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php +0 -11
- package/support/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php +0 -5
- package/support/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php +0 -5
- package/support/vendor/symfony/polyfill-php80/bootstrap.php +0 -42
- package/support/vendor/symfony/polyfill-php80/composer.json +0 -40
package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/KeywordTokenHandler.php
CHANGED
|
@@ -3,21 +3,15 @@
|
|
|
3
3
|
namespace Phug\Parser\TokenHandler;
|
|
4
4
|
|
|
5
5
|
use Phug\Lexer\Token\KeywordToken;
|
|
6
|
-
use Phug\Lexer\TokenInterface;
|
|
7
6
|
use Phug\Parser\Node\KeywordNode;
|
|
8
7
|
use Phug\Parser\State;
|
|
9
|
-
use Phug\Parser\TokenHandlerInterface;
|
|
10
8
|
|
|
11
|
-
class KeywordTokenHandler
|
|
9
|
+
class KeywordTokenHandler extends AbstractTokenHandler
|
|
12
10
|
{
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
if (!($token instanceof KeywordToken)) {
|
|
16
|
-
throw new \RuntimeException(
|
|
17
|
-
'You can only pass keyword tokens to this token handler'
|
|
18
|
-
);
|
|
19
|
-
}
|
|
11
|
+
const TOKEN_TYPE = KeywordToken::class;
|
|
20
12
|
|
|
13
|
+
public function handleKeywordToken(KeywordToken $token, State $state)
|
|
14
|
+
{
|
|
21
15
|
/** @var KeywordNode $node */
|
|
22
16
|
$node = $state->createNode(KeywordNode::class, $token);
|
|
23
17
|
$node->setName($token->getName());
|
package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/MixinCallTokenHandler.php
CHANGED
|
@@ -3,22 +3,16 @@
|
|
|
3
3
|
namespace Phug\Parser\TokenHandler;
|
|
4
4
|
|
|
5
5
|
use Phug\Lexer\Token\MixinCallToken;
|
|
6
|
-
use Phug\Lexer\TokenInterface;
|
|
7
6
|
use Phug\Parser\Node\ExpressionNode;
|
|
8
7
|
use Phug\Parser\Node\MixinCallNode;
|
|
9
8
|
use Phug\Parser\State;
|
|
10
|
-
use Phug\Parser\TokenHandlerInterface;
|
|
11
9
|
|
|
12
|
-
class MixinCallTokenHandler
|
|
10
|
+
class MixinCallTokenHandler extends AbstractTokenHandler
|
|
13
11
|
{
|
|
14
|
-
|
|
15
|
-
{
|
|
16
|
-
if (!($token instanceof MixinCallToken)) {
|
|
17
|
-
throw new \RuntimeException(
|
|
18
|
-
'You can only pass mixin call tokens to this token handler'
|
|
19
|
-
);
|
|
20
|
-
}
|
|
12
|
+
const TOKEN_TYPE = MixinCallToken::class;
|
|
21
13
|
|
|
14
|
+
public function handleMixinCallToken(MixinCallToken $token, State $state)
|
|
15
|
+
{
|
|
22
16
|
/** @var MixinCallNode $node */
|
|
23
17
|
$node = $state->createNode(MixinCallNode::class, $token);
|
|
24
18
|
$name = $token->getName();
|
|
@@ -3,21 +3,15 @@
|
|
|
3
3
|
namespace Phug\Parser\TokenHandler;
|
|
4
4
|
|
|
5
5
|
use Phug\Lexer\Token\MixinToken;
|
|
6
|
-
use Phug\Lexer\TokenInterface;
|
|
7
6
|
use Phug\Parser\Node\MixinNode;
|
|
8
7
|
use Phug\Parser\State;
|
|
9
|
-
use Phug\Parser\TokenHandlerInterface;
|
|
10
8
|
|
|
11
|
-
class MixinTokenHandler
|
|
9
|
+
class MixinTokenHandler extends AbstractTokenHandler
|
|
12
10
|
{
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
if (!($token instanceof MixinToken)) {
|
|
16
|
-
throw new \RuntimeException(
|
|
17
|
-
'You can only pass mixin tokens to this token handler'
|
|
18
|
-
);
|
|
19
|
-
}
|
|
11
|
+
const TOKEN_TYPE = MixinToken::class;
|
|
20
12
|
|
|
13
|
+
public function handleMixinToken(MixinToken $token, State $state)
|
|
14
|
+
{
|
|
21
15
|
/** @var MixinNode $node */
|
|
22
16
|
$node = $state->createNode(MixinNode::class, $token);
|
|
23
17
|
$node->setName($token->getName());
|
package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/NewLineTokenHandler.php
CHANGED
|
@@ -3,20 +3,14 @@
|
|
|
3
3
|
namespace Phug\Parser\TokenHandler;
|
|
4
4
|
|
|
5
5
|
use Phug\Lexer\Token\NewLineToken;
|
|
6
|
-
use Phug\Lexer\TokenInterface;
|
|
7
6
|
use Phug\Parser\State;
|
|
8
|
-
use Phug\Parser\TokenHandlerInterface;
|
|
9
7
|
|
|
10
|
-
class NewLineTokenHandler
|
|
8
|
+
class NewLineTokenHandler extends AbstractTokenHandler
|
|
11
9
|
{
|
|
12
|
-
|
|
13
|
-
{
|
|
14
|
-
if (!($token instanceof NewLineToken)) {
|
|
15
|
-
throw new \RuntimeException(
|
|
16
|
-
'You can only pass newline tokens to this token handler'
|
|
17
|
-
);
|
|
18
|
-
}
|
|
10
|
+
const TOKEN_TYPE = NewLineToken::class;
|
|
19
11
|
|
|
12
|
+
public function handleNewLineToken(NewLineToken $token, State $state)
|
|
13
|
+
{
|
|
20
14
|
$state->store();
|
|
21
15
|
}
|
|
22
16
|
}
|
package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/OutdentTokenHandler.php
CHANGED
|
@@ -3,20 +3,14 @@
|
|
|
3
3
|
namespace Phug\Parser\TokenHandler;
|
|
4
4
|
|
|
5
5
|
use Phug\Lexer\Token\OutdentToken;
|
|
6
|
-
use Phug\Lexer\TokenInterface;
|
|
7
6
|
use Phug\Parser\State;
|
|
8
|
-
use Phug\Parser\TokenHandlerInterface;
|
|
9
7
|
|
|
10
|
-
class OutdentTokenHandler
|
|
8
|
+
class OutdentTokenHandler extends AbstractTokenHandler
|
|
11
9
|
{
|
|
12
|
-
|
|
13
|
-
{
|
|
14
|
-
if (!($token instanceof OutdentToken)) {
|
|
15
|
-
throw new \RuntimeException(
|
|
16
|
-
'You can only pass outdent tokens to this token handler'
|
|
17
|
-
);
|
|
18
|
-
}
|
|
10
|
+
const TOKEN_TYPE = OutdentToken::class;
|
|
19
11
|
|
|
12
|
+
public function handleOutdentToken(OutdentToken $token, State $state)
|
|
13
|
+
{
|
|
20
14
|
$state->leave();
|
|
21
15
|
}
|
|
22
16
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
namespace Phug\Parser\TokenHandler\Partial;
|
|
4
|
+
|
|
5
|
+
use Phug\Lexer\Token\ClassToken;
|
|
6
|
+
use Phug\Lexer\Token\IdToken;
|
|
7
|
+
use Phug\Lexer\TokenInterface;
|
|
8
|
+
use Phug\Parser\Node\AttributeNode;
|
|
9
|
+
use Phug\Parser\Node\ElementNode;
|
|
10
|
+
use Phug\Parser\Node\MixinCallNode;
|
|
11
|
+
use Phug\Parser\State;
|
|
12
|
+
|
|
13
|
+
trait StaticAttributeTrait
|
|
14
|
+
{
|
|
15
|
+
/**
|
|
16
|
+
* @param string $name
|
|
17
|
+
* @param IdToken|ClassToken $token
|
|
18
|
+
* @param State $state
|
|
19
|
+
*
|
|
20
|
+
* @return void
|
|
21
|
+
*/
|
|
22
|
+
private function attachStaticAttribute($name, TokenInterface $token, State $state)
|
|
23
|
+
{
|
|
24
|
+
$this->onlyOnElement($token, $state);
|
|
25
|
+
|
|
26
|
+
/** @var AttributeNode $attr */
|
|
27
|
+
$attr = $state->createNode(AttributeNode::class, $token);
|
|
28
|
+
$attr->setName($name);
|
|
29
|
+
$attr->setValue(var_export($token->getName(), true));
|
|
30
|
+
$attr->unescape()->uncheck();
|
|
31
|
+
|
|
32
|
+
/** @var ElementNode|MixinCallNode $current */
|
|
33
|
+
$current = $state->getCurrentNode();
|
|
34
|
+
$current->getAttributes()->attach($attr);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -3,20 +3,14 @@
|
|
|
3
3
|
namespace Phug\Parser\TokenHandler;
|
|
4
4
|
|
|
5
5
|
use Phug\Lexer\Token\TagInterpolationEndToken;
|
|
6
|
-
use Phug\Lexer\TokenInterface;
|
|
7
6
|
use Phug\Parser\State;
|
|
8
|
-
use Phug\Parser\TokenHandlerInterface;
|
|
9
7
|
|
|
10
|
-
class TagInterpolationEndTokenHandler
|
|
8
|
+
class TagInterpolationEndTokenHandler extends AbstractTokenHandler
|
|
11
9
|
{
|
|
12
|
-
|
|
13
|
-
{
|
|
14
|
-
if (!($token instanceof TagInterpolationEndToken)) {
|
|
15
|
-
throw new \RuntimeException(
|
|
16
|
-
'You can only pass tag interpolation end tokens to this token handler'
|
|
17
|
-
);
|
|
18
|
-
}
|
|
10
|
+
const TOKEN_TYPE = TagInterpolationEndToken::class;
|
|
19
11
|
|
|
12
|
+
public function handleTagInterpolationEndToken(TagInterpolationEndToken $token, State $state)
|
|
13
|
+
{
|
|
20
14
|
$state->popInterpolationNode();
|
|
21
15
|
$node = $state->getCurrentNode();
|
|
22
16
|
$nodes = $state->getInterpolationStack()->offsetGet($token);
|
|
@@ -3,24 +3,19 @@
|
|
|
3
3
|
namespace Phug\Parser\TokenHandler;
|
|
4
4
|
|
|
5
5
|
use Phug\Lexer\Token\TagInterpolationStartToken;
|
|
6
|
-
use Phug\Lexer\TokenInterface;
|
|
7
6
|
use Phug\Parser\Node\CodeNode;
|
|
8
7
|
use Phug\Parser\Node\ExpressionNode;
|
|
9
8
|
use Phug\Parser\Node\TextNode;
|
|
10
9
|
use Phug\Parser\State;
|
|
11
|
-
use Phug\Parser\TokenHandlerInterface;
|
|
12
10
|
|
|
13
|
-
class TagInterpolationStartTokenHandler
|
|
11
|
+
class TagInterpolationStartTokenHandler extends AbstractTokenHandler
|
|
14
12
|
{
|
|
15
|
-
|
|
16
|
-
{
|
|
17
|
-
if (!($token instanceof TagInterpolationStartToken)) {
|
|
18
|
-
throw new \RuntimeException(
|
|
19
|
-
'You can only pass tag interpolation start tokens to this token handler'
|
|
20
|
-
);
|
|
21
|
-
}
|
|
13
|
+
const TOKEN_TYPE = TagInterpolationStartToken::class;
|
|
22
14
|
|
|
15
|
+
public function handleTagInterpolationStartToken(TagInterpolationStartToken $token, State $state)
|
|
16
|
+
{
|
|
23
17
|
$node = $state->getCurrentNode();
|
|
18
|
+
|
|
24
19
|
if ($state->currentNodeIs([
|
|
25
20
|
TextNode::class,
|
|
26
21
|
CodeNode::class,
|
|
@@ -28,9 +23,11 @@ class TagInterpolationStartTokenHandler implements TokenHandlerInterface
|
|
|
28
23
|
])) {
|
|
29
24
|
$node = $node->getParent();
|
|
30
25
|
}
|
|
26
|
+
|
|
31
27
|
if ($node) {
|
|
32
28
|
$state->pushInterpolationNode($node);
|
|
33
29
|
}
|
|
30
|
+
|
|
34
31
|
$state->getInterpolationStack()->attach($token->getEnd(), (object) [
|
|
35
32
|
'currentNode' => $node,
|
|
36
33
|
'parentNode' => $state->getParentNode(),
|
|
@@ -3,32 +3,17 @@
|
|
|
3
3
|
namespace Phug\Parser\TokenHandler;
|
|
4
4
|
|
|
5
5
|
use Phug\Lexer\Token\TagToken;
|
|
6
|
-
use Phug\Lexer\TokenInterface;
|
|
7
6
|
use Phug\Parser\Node\ElementNode;
|
|
8
7
|
use Phug\Parser\State;
|
|
9
|
-
use Phug\Parser\TokenHandlerInterface;
|
|
10
8
|
|
|
11
|
-
class TagTokenHandler
|
|
9
|
+
class TagTokenHandler extends AbstractTokenHandler
|
|
12
10
|
{
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
if (!($token instanceof TagToken)) {
|
|
16
|
-
throw new \RuntimeException(
|
|
17
|
-
'You can only pass tag tokens to this token handler'
|
|
18
|
-
);
|
|
19
|
-
}
|
|
11
|
+
const TOKEN_TYPE = TagToken::class;
|
|
20
12
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
if (!$state->currentNodeIs([ElementNode::class])) {
|
|
26
|
-
$state->throwException(
|
|
27
|
-
'Tags can only be used on elements',
|
|
28
|
-
0,
|
|
29
|
-
$token
|
|
30
|
-
);
|
|
31
|
-
}
|
|
13
|
+
public function handleTagToken(TagToken $token, State $state)
|
|
14
|
+
{
|
|
15
|
+
$this->createElementNodeIfMissing($token, $state);
|
|
16
|
+
$this->assertCurrentNodeIs($token, $state, [ElementNode::class]);
|
|
32
17
|
|
|
33
18
|
/** @var ElementNode $current */
|
|
34
19
|
$current = $state->getCurrentNode();
|
|
@@ -3,21 +3,15 @@
|
|
|
3
3
|
namespace Phug\Parser\TokenHandler;
|
|
4
4
|
|
|
5
5
|
use Phug\Lexer\Token\TextToken;
|
|
6
|
-
use Phug\Lexer\TokenInterface;
|
|
7
6
|
use Phug\Parser\Node\TextNode;
|
|
8
7
|
use Phug\Parser\State;
|
|
9
|
-
use Phug\Parser\TokenHandlerInterface;
|
|
10
8
|
|
|
11
|
-
class TextTokenHandler
|
|
9
|
+
class TextTokenHandler extends AbstractTokenHandler
|
|
12
10
|
{
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
if (!($token instanceof TextToken)) {
|
|
16
|
-
throw new \RuntimeException(
|
|
17
|
-
'You can only pass text tokens to this token handler'
|
|
18
|
-
);
|
|
19
|
-
}
|
|
11
|
+
const TOKEN_TYPE = TextToken::class;
|
|
20
12
|
|
|
13
|
+
public function handleTextToken(TextToken $token, State $state)
|
|
14
|
+
{
|
|
21
15
|
/** @var TextNode $node */
|
|
22
16
|
$node = $state->createNode(TextNode::class, $token);
|
|
23
17
|
$node->setValue($token->getValue());
|
package/support/vendor/phug/phug/src/Phug/Parser/Parser/TokenHandler/VariableTokenHandler.php
CHANGED
|
@@ -3,21 +3,15 @@
|
|
|
3
3
|
namespace Phug\Parser\TokenHandler;
|
|
4
4
|
|
|
5
5
|
use Phug\Lexer\Token\VariableToken;
|
|
6
|
-
use Phug\Lexer\TokenInterface;
|
|
7
6
|
use Phug\Parser\Node\VariableNode;
|
|
8
7
|
use Phug\Parser\State;
|
|
9
|
-
use Phug\Parser\TokenHandlerInterface;
|
|
10
8
|
|
|
11
|
-
class VariableTokenHandler
|
|
9
|
+
class VariableTokenHandler extends AbstractTokenHandler
|
|
12
10
|
{
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
if (!($token instanceof VariableToken)) {
|
|
16
|
-
throw new \RuntimeException(
|
|
17
|
-
'You can only pass variable tokens to this token handler'
|
|
18
|
-
);
|
|
19
|
-
}
|
|
11
|
+
const TOKEN_TYPE = VariableToken::class;
|
|
20
12
|
|
|
13
|
+
public function handleVariableToken(VariableToken $token, State $state)
|
|
14
|
+
{
|
|
21
15
|
/** @var VariableNode $node */
|
|
22
16
|
$node = $state->createNode(VariableNode::class, $token);
|
|
23
17
|
$node->setName($token->getName());
|
|
@@ -3,21 +3,15 @@
|
|
|
3
3
|
namespace Phug\Parser\TokenHandler;
|
|
4
4
|
|
|
5
5
|
use Phug\Lexer\Token\WhenToken;
|
|
6
|
-
use Phug\Lexer\TokenInterface;
|
|
7
6
|
use Phug\Parser\Node\WhenNode;
|
|
8
7
|
use Phug\Parser\State;
|
|
9
|
-
use Phug\Parser\TokenHandlerInterface;
|
|
10
8
|
|
|
11
|
-
class WhenTokenHandler
|
|
9
|
+
class WhenTokenHandler extends AbstractTokenHandler
|
|
12
10
|
{
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
if (!($token instanceof WhenToken)) {
|
|
16
|
-
throw new \RuntimeException(
|
|
17
|
-
'You can only pass when tokens to this token handler'
|
|
18
|
-
);
|
|
19
|
-
}
|
|
11
|
+
const TOKEN_TYPE = WhenToken::class;
|
|
20
12
|
|
|
13
|
+
public function handleWhenToken(WhenToken $token, State $state)
|
|
14
|
+
{
|
|
21
15
|
/** @var WhenNode $node */
|
|
22
16
|
$node = $state->createNode(WhenNode::class, $token);
|
|
23
17
|
$node->setSubject($token->getSubject());
|
|
@@ -3,21 +3,15 @@
|
|
|
3
3
|
namespace Phug\Parser\TokenHandler;
|
|
4
4
|
|
|
5
5
|
use Phug\Lexer\Token\WhileToken;
|
|
6
|
-
use Phug\Lexer\TokenInterface;
|
|
7
6
|
use Phug\Parser\Node\WhileNode;
|
|
8
7
|
use Phug\Parser\State;
|
|
9
|
-
use Phug\Parser\TokenHandlerInterface;
|
|
10
8
|
|
|
11
|
-
class WhileTokenHandler
|
|
9
|
+
class WhileTokenHandler extends AbstractTokenHandler
|
|
12
10
|
{
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
if (!($token instanceof WhileToken)) {
|
|
16
|
-
throw new \RuntimeException(
|
|
17
|
-
'You can only pass while tokens to this token handler'
|
|
18
|
-
);
|
|
19
|
-
}
|
|
11
|
+
const TOKEN_TYPE = WhileToken::class;
|
|
20
12
|
|
|
13
|
+
public function handleWhileToken(WhileToken $token, State $state)
|
|
14
|
+
{
|
|
21
15
|
/** @var WhileNode $node */
|
|
22
16
|
$node = $state->createNode(WhileNode::class, $token);
|
|
23
17
|
$node->setSubject($token->getSubject());
|
|
@@ -3,21 +3,15 @@
|
|
|
3
3
|
namespace Phug\Parser\TokenHandler;
|
|
4
4
|
|
|
5
5
|
use Phug\Lexer\Token\YieldToken;
|
|
6
|
-
use Phug\Lexer\TokenInterface;
|
|
7
6
|
use Phug\Parser\Node\YieldNode;
|
|
8
7
|
use Phug\Parser\State;
|
|
9
|
-
use Phug\Parser\TokenHandlerInterface;
|
|
10
8
|
|
|
11
|
-
class YieldTokenHandler
|
|
9
|
+
class YieldTokenHandler extends AbstractTokenHandler
|
|
12
10
|
{
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
if (!($token instanceof YieldToken)) {
|
|
16
|
-
throw new \RuntimeException(
|
|
17
|
-
'You can only pass yield tokens to this token handler'
|
|
18
|
-
);
|
|
19
|
-
}
|
|
11
|
+
const TOKEN_TYPE = YieldToken::class;
|
|
20
12
|
|
|
13
|
+
public function handleYieldToken(YieldToken $token, State $state)
|
|
14
|
+
{
|
|
21
15
|
$state->setCurrentNode($state->createNode(YieldNode::class, $token));
|
|
22
16
|
}
|
|
23
17
|
}
|
|
@@ -330,8 +330,8 @@ class Parser implements ModuleContainerInterface
|
|
|
330
330
|
|
|
331
331
|
foreach ($expandingNodes as $expandingNode) {
|
|
332
332
|
$current = $expandingNode;
|
|
333
|
-
while ($outerNode = $expandingNode->getOuterNode()) {
|
|
334
333
|
|
|
334
|
+
while ($outerNode = $expandingNode->getOuterNode()) {
|
|
335
335
|
/** @var NodeInterface $expandedNode */
|
|
336
336
|
$expandedNode = $outerNode;
|
|
337
337
|
$current->setOuterNode(null);
|
|
@@ -94,7 +94,7 @@ class Cli
|
|
|
94
94
|
return false;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
if (!in_array($method, iterator_to_array($this->getAvailableMethods($customMethods)))) {
|
|
97
|
+
if (!in_array($method, iterator_to_array($this->getAvailableMethods($customMethods)), true)) {
|
|
98
98
|
echo "The method $action is not available as CLI command in the $facade facade.\n";
|
|
99
99
|
$this->listAvailableMethods($customMethods);
|
|
100
100
|
|
|
@@ -152,21 +152,21 @@ class Cli
|
|
|
152
152
|
{
|
|
153
153
|
return preg_replace_callback('/[A-Z]/', function ($match) {
|
|
154
154
|
return '-'.strtolower($match[0]);
|
|
155
|
-
}, $string);
|
|
155
|
+
}, (string) $string);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
protected function convertToCamelCase($string)
|
|
159
159
|
{
|
|
160
160
|
return preg_replace_callback('/-([a-z])/', function ($match) {
|
|
161
161
|
return strtoupper($match[1]);
|
|
162
|
-
}, $string);
|
|
162
|
+
}, (string) $string);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
protected function execute($facade, $method, $arguments, $outputFile)
|
|
166
166
|
{
|
|
167
167
|
$callable = [$facade, $method];
|
|
168
168
|
$arguments = array_map(function ($argument) {
|
|
169
|
-
return in_array(substr($argument, 0, 1), ['[', '{'])
|
|
169
|
+
return in_array(substr((string) $argument, 0, 1), ['[', '{'], true)
|
|
170
170
|
? json_decode($argument, true)
|
|
171
171
|
: $argument;
|
|
172
172
|
}, $arguments);
|
|
@@ -206,7 +206,7 @@ class Cli
|
|
|
206
206
|
|
|
207
207
|
protected function getNamedArgumentByEqualOperator(array &$arguments, $index, $name)
|
|
208
208
|
{
|
|
209
|
-
if (preg_match('/^'.preg_quote($name).'=(.*)$/', $arguments[$index], $match)) {
|
|
209
|
+
if (preg_match('/^'.preg_quote($name).'=(.*)$/', (string) $arguments[$index], $match)) {
|
|
210
210
|
array_splice($arguments, $index, 1);
|
|
211
211
|
|
|
212
212
|
return $match[1];
|
|
@@ -54,7 +54,7 @@ trait ExtensionsTrait
|
|
|
54
54
|
*/
|
|
55
55
|
public static function hasExtension($extensionClassName)
|
|
56
56
|
{
|
|
57
|
-
return in_array(static::normalizeExtensionClassName($extensionClassName), static::getExtensionIds());
|
|
57
|
+
return in_array(static::normalizeExtensionClassName($extensionClassName), static::getExtensionIds(), true);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
namespace Phug;
|
|
4
4
|
|
|
5
|
+
use InvalidArgumentException;
|
|
5
6
|
use Phug\Partial\ExtensionsTrait;
|
|
6
7
|
use Phug\Partial\FacadeOptionsTrait;
|
|
7
8
|
|
|
@@ -476,16 +477,24 @@ class Phug
|
|
|
476
477
|
*/
|
|
477
478
|
public static function cacheDirectory($source, $destination = null, $options = null)
|
|
478
479
|
{
|
|
479
|
-
|
|
480
|
+
$options = $options ?: [];
|
|
481
|
+
$destination = $destination ?: [];
|
|
482
|
+
|
|
483
|
+
if (!is_array($destination)) {
|
|
480
484
|
$destination = [
|
|
481
485
|
'cache_dir' => $destination,
|
|
482
486
|
];
|
|
483
487
|
}
|
|
484
488
|
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
+
if (!is_array($options)) {
|
|
490
|
+
throw new InvalidArgumentException(
|
|
491
|
+
'Expected $options to be an array, got: '.
|
|
492
|
+
(@var_export($options, true) ?: (is_object($options) ? get_class($options) : gettype($options)))
|
|
493
|
+
);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
return static::getRenderer(array_merge($options, $destination))
|
|
497
|
+
->cacheDirectory($source);
|
|
489
498
|
}
|
|
490
499
|
|
|
491
500
|
/**
|
|
@@ -7,9 +7,12 @@
|
|
|
7
7
|
"homepage": "http://phug-lang.com",
|
|
8
8
|
"authors": [
|
|
9
9
|
{
|
|
10
|
-
"name": "
|
|
11
|
-
"email": "jade-php@selfbuild.fr",
|
|
10
|
+
"name": "kylekatarnls",
|
|
12
11
|
"homepage": "http://github.com/kylekatarnls"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "Torben Koehn",
|
|
15
|
+
"email": "torben@talesoft.codes"
|
|
13
16
|
}
|
|
14
17
|
],
|
|
15
18
|
"support": {
|
|
@@ -313,9 +313,9 @@ class Reader
|
|
|
313
313
|
*
|
|
314
314
|
* Notice that ^ is automatically prepended to the pattern.
|
|
315
315
|
*
|
|
316
|
-
* @param string
|
|
317
|
-
* @param string $modifiers the modifiers for the regular expression.
|
|
318
|
-
* @param string $ignoredSuffixes characters that are scanned, but don't end up in the consume length.
|
|
316
|
+
* @param string $pattern the regular expression without slashes or modifiers.
|
|
317
|
+
* @param string|null $modifiers the modifiers for the regular expression.
|
|
318
|
+
* @param string|null $ignoredSuffixes characters that are scanned, but don't end up in the consume length.
|
|
319
319
|
*
|
|
320
320
|
* @throws ReaderException
|
|
321
321
|
*
|
|
@@ -323,7 +323,7 @@ class Reader
|
|
|
323
323
|
*/
|
|
324
324
|
public function match($pattern, $modifiers = null, $ignoredSuffixes = null)
|
|
325
325
|
{
|
|
326
|
-
$modifiers = $modifiers
|
|
326
|
+
$modifiers = (string) $modifiers;
|
|
327
327
|
$ignoredSuffixes = $ignoredSuffixes ?: "\n";
|
|
328
328
|
$matches = null;
|
|
329
329
|
$this->lastMatchResult = null;
|
|
@@ -572,7 +572,7 @@ class Reader
|
|
|
572
572
|
*/
|
|
573
573
|
public function peekSpace()
|
|
574
574
|
{
|
|
575
|
-
return ctype_space($this->peek());
|
|
575
|
+
return ctype_space((string) $this->peek());
|
|
576
576
|
}
|
|
577
577
|
|
|
578
578
|
/**
|
|
@@ -584,7 +584,7 @@ class Reader
|
|
|
584
584
|
*/
|
|
585
585
|
public function peekDigit()
|
|
586
586
|
{
|
|
587
|
-
return ctype_digit($this->peek());
|
|
587
|
+
return ctype_digit((string) $this->peek());
|
|
588
588
|
}
|
|
589
589
|
|
|
590
590
|
/**
|
|
@@ -596,7 +596,7 @@ class Reader
|
|
|
596
596
|
*/
|
|
597
597
|
public function peekAlpha()
|
|
598
598
|
{
|
|
599
|
-
return ctype_alpha($this->peek());
|
|
599
|
+
return ctype_alpha((string) $this->peek());
|
|
600
600
|
}
|
|
601
601
|
|
|
602
602
|
/**
|
|
@@ -608,7 +608,7 @@ class Reader
|
|
|
608
608
|
*/
|
|
609
609
|
public function peekAlphaNumeric()
|
|
610
610
|
{
|
|
611
|
-
return ctype_alnum($this->peek());
|
|
611
|
+
return ctype_alnum((string) $this->peek());
|
|
612
612
|
}
|
|
613
613
|
|
|
614
614
|
/**
|
|
@@ -658,7 +658,7 @@ class Reader
|
|
|
658
658
|
*/
|
|
659
659
|
public function readUntilNewLine()
|
|
660
660
|
{
|
|
661
|
-
return $this->readUntil([$this, 'peekNewLine']);
|
|
661
|
+
return (string) $this->readUntil([$this, 'peekNewLine']);
|
|
662
662
|
}
|
|
663
663
|
|
|
664
664
|
/**
|