Skip to content

Commit

Permalink
PHP 8.3 Support: Dynamic class constant fetch (Part 1)
Browse files Browse the repository at this point in the history
- 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};
```
  • Loading branch information
junichi11 committed Nov 24, 2023
1 parent bbbe151 commit daa3248
Show file tree
Hide file tree
Showing 65 changed files with 50,315 additions and 46,775 deletions.
3,087 changes: 1,629 additions & 1,458 deletions php/php.editor/src/org/netbeans/modules/php/editor/parser/ASTPHP5Parser.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

//----------------------------------------------------
// The following code was generated by CUP v0.11a beta 20060608
// Wed Jun 14 11:39:46 JST 2023
// Thu Nov 23 14:26:01 JST 2023
//----------------------------------------------------

package org.netbeans.modules.php.editor.parser;
Expand Down
3,966 changes: 1,983 additions & 1,983 deletions php/php.editor/src/org/netbeans/modules/php/editor/parser/EncodedActionTable1.java

Large diffs are not rendered by default.

0 comments on commit daa3248

Please sign in to comment.