Skip to content

Lint: Register ++/-- increment/decrement in UnsupportedRegistry #300

Description

@PurHur

Problem

Loop counters and pagination use ++$i / $i++ (#137). Until implemented, phpc lint should point to #137 instead of a generic Unsupported expression for PreInc, PostInc, PreDec, PostDec.

Goal

Map php-cfg increment/decrement expression kinds in UnsupportedRegistry + docs/unsupported-syntax.md.

Scope

Acceptance criteria

./phpc lint -r '++$i;' 2>&1 | grep 137

Verification

docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \
  vendor/bin/phpunit --filter UnsupportedRegistryTest

Links

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions