final class IntegerContextRule
    implements RewriteRule

Completes source-defined integer contexts in sql_yacc.yy, including diagnostic decimal alternatives.

Methods§

public function __construct(private bool $strictYearWidth = true)

MySQL 5.6 and 5.7 normalize unsupported YEAR widths instead of rejecting them.

Parameters

$strictYearWidthbool
public function mapped(
    TerminalSequence $sequence,
    int $production,
    string $terminal,
    string $source,
): TerminalSequence

Retains occurrence identity so a compatible explicit Plan spelling survives contextual renaming.

Parameters

$sequenceTerminalSequence
$productionint
$terminalstring
$sourcestring
Test cases 1
Called from 8
Calls 2

Private surface 1§

Implementation details, listed for orientation only.

private bool $strictYearWidth = true

Test cases 19§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 13
Other tests reaching this symbol 6

Relations§

Instantiated in 1