Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.3 Support: Dynamic class constant fetch #6701 #6752

Commits on Nov 24, 2023

  1. Configuration menu
    Copy the full SHA
    bbbe151 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2023

  1. PHP 8.3 Support: Dynamic class constant fetch (Part 1)

    - apache#6701
    - https://wiki.php.net/rfc/dynamic_class_constant_fetch
    - Fix the grammar file (parser)
    - Add the `PHP83UnhandledError`
    - Add/Fix unit tests for the parser
    
    Example:
    ```php
    class Example {
        const CONSTANT = 'constant';
    }
    $constant = 'CONSTANT';
    echo Example::{$constant};
    ```
    junichi11 committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    ad66f6e View commit details
    Browse the repository at this point in the history
  2. PHP 8.3 Support: Dynamic class constant fetch (Part 2)

    - apache#6701
    - https://wiki.php.net/rfc/dynamic_class_constant_fetch
    - Fix the `SemanticAnalysis`
    - Fix the mark occurrences and the go to declaration features
    - Add unit tests
    junichi11 committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    9e9672a View commit details
    Browse the repository at this point in the history
  3. PHP 8.3 Support: Dynamic class constant fetch (Part 3)

    - apache#6701
    - https://wiki.php.net/rfc/dynamic_class_constant_fetch
    - Fix the formatter
      - Add the option of the around spaces for the scope resolution operator (`::`)
      - Don't add spaces within braces (`{}`) e.g. {$example}
    - Add unit tests
    junichi11 committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    9635c49 View commit details
    Browse the repository at this point in the history
  4. PHP 8.3 Support: Dynamic class constant fetch (Part 4)

    - apache#6701
    - https://wiki.php.net/rfc/dynamic_class_constant_fetch
    - Fix the code completion feature
    - Add unit tests for the code completion and brace matching features
    junichi11 committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    1571f5c View commit details
    Browse the repository at this point in the history
  5. PHP 8.3 Support: Dynamic class constant fetch (Part 5)

    - apache#6701
    - https://wiki.php.net/rfc/dynamic_class_constant_fetch
    - Fix the `IntroduceSuggestion` and `PHP55UnhandledError`
    - Add unit tests
    junichi11 committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    7e70563 View commit details
    Browse the repository at this point in the history