fix overeager optimization in Table handler. fixes #4186This reverts an optimization introduced inbcaec9f47d06126b3e653fea89a86d8b6a6cbef8The number of elements in $this->tableCalls may change d
fix overeager optimization in Table handler. fixes #4186This reverts an optimization introduced inbcaec9f47d06126b3e653fea89a86d8b6a6cbef8The number of elements in $this->tableCalls may change during the loop,so they need to be recounted on every step. To protect it from being"optimized" again, the loop was changed into a while loop.Ultimately it should be checked if this method could be optimized inanother way.
show more ...
Use str_starts_with/str_ends_with
fix syntax plugin loadingIt turns out our Syntax plugins never implemented the PluginInterface(though they did use the PluginTrait). With our stricter type checkingin the plugin loader, these plu
fix syntax plugin loadingIt turns out our Syntax plugins never implemented the PluginInterface(though they did use the PluginTrait). With our stricter type checkingin the plugin loader, these plugins did not longer load.
code style: line breaks
code style: operator spacing
coding style: control flow line breaks
coding style: control flow whitespaces
codestyle adjustments: function declaration braces/spaces
codestyle adjustments: class declaration braces
apply PSR-12 constant visibility rulePSR-12 says constants need their visibility declared from PHP 7.1onwards
Apply rector fixes to inc/Parsing
Update core code to make use of sexplode()This makes use of our own explode mechanism everywhere were we expect afixed number of results.
Remove the htmlok and phpok embedding optionsBoth options have grave security implications and novice users seem toignore advice about them. In the last decades I never came across a wikithat had
Remove the htmlok and phpok embedding optionsBoth options have grave security implications and novice users seem toignore advice about them. In the last decades I never came across a wikithat had legitimate use of these options.If someone needs the functionality, it can easily be added back using aplugin. But I prefer to give users one less option to shoot themselvesin the foot.Removal of the translations for the config strings can follow after thishas been merged.
PHP 8: rename match() to apply() in Lexer #3298
Public access to patterns in external link parser
Move defines to their own fileAs described inhttps://github.com/dwp-forge/columns/issues/5#issuecomment-638467603sometime the Lexer constants have not been (auto)loaded when a syntax pluginis in
Move defines to their own fileAs described inhttps://github.com/dwp-forge/columns/issues/5#issuecomment-638467603sometime the Lexer constants have not been (auto)loaded when a syntax pluginis invoked (I'm not sure why).In general PSR2 discourages a mix of main code and function/class setupwith the call to define() being considered main code.This patch moves these the define calls to a separate new file, solvingboth of the above problems.These are not all our defines. Instead I focused on the ones that areENUM-like.In the future we should think about what defines can be replaced byclass constants and what other define() calls should be moved.
fix phpdocCo-authored-by: Matthias Gutjahr <mattsches@gmail.com>
Fix accessing callsSome plugins need access to the handler (and rewriter) calls. Oneexample is the do plugin.This adds some accessing methods to the callWriter objects, ensures$calls can be acc
Fix accessing callsSome plugins need access to the handler (and rewriter) calls. Oneexample is the do plugin.This adds some accessing methods to the callWriter objects, ensures$calls can be accessed and removes some duplicate code by introducing anabstract base class.
Let plugins access the lexer mode stack
Fix php styling of too long regexp
Fixed broken link rendering for external links at start of lineExternal links at the start of line like 'www.example.com' werenot rendered as links any more. The issue was introduced with PR #1988
Fixed broken link rendering for external links at start of lineExternal links at the start of line like 'www.example.com' werenot rendered as links any more. The issue was introduced with PR #1988.Fixes #2399.
Restore some backwards compatibility for injected handlersSome plugins, for example the move plugin, use their own handler class.We need to give these plugins time to adjust their code.This shou
Restore some backwards compatibility for injected handlersSome plugins, for example the move plugin, use their own handler class.We need to give these plugins time to adjust their code.This should restore the functionality of the move plugin. We still needto extract the handler class itself.It also adds another debug method for triggering the deprecation event,since none of the two existing methods are suitable here. ThisdbgCustomDeprecationEvent method should be used sparingly and only wherethe other two don't work.Co-authored-by: Phy <git@phy25.com>
Merge branch 'master' into psr2* master: upgraded JSON class to latest (2006) version continue is break in switch translation update reference existing proper progress gif. fixes #2441 Fi
Merge branch 'master' into psr2* master: upgraded JSON class to latest (2006) version continue is break in switch translation update reference existing proper progress gif. fixes #2441 Fix missing ui-bg_glass_95_fef1ec_1x400.png and be/jquery.ui.datepicker.js for jquery removed accidental merges of outdated translations Change `const` use to `var` for Safari 9 (on iOS) Fix .htaccess files for Apache 2.4 (and 2.2) add logic if the server uses unlimited memory settings in is_mem_available() removed safemode hack
Make lexer/state stack more understandable- rename lexer $mode property to avoid two different uses of "mode" variables in the lexer- clarify/improve comments
do not use DOKU_PARSER_EOL outside of testing
12