mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-03 02:21:44 +00:00
* fix(php): import decomposition, enum cases, anonymous class scope — F53,F54,F55 (#1931) * chore: fix unused imports, format, rebuild gitnexus-shared for macro type * chore(bench): update PHP scope-capture baseline to CI-computed hash * fix(php): reviewer fixes — grouped prefix, dead code removal, test precision * feat: add F55 anonymous class pipeline test * chore: fix format and benchmark baseline * chore: regen PHP golden after F53/F54/F55 query changes * chore: remove pipeline test, add grouped-prefix test, update fingerprint * chore: remove unused beforeAll and path imports --------- Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
14 lines
275 B
PHP
14 lines
275 B
PHP
<?php
|
|
// F54 — enum with cases
|
|
enum UserRole: string {
|
|
case Admin = 'admin';
|
|
case Editor = 'editor';
|
|
case Viewer = 'viewer';
|
|
}
|
|
|
|
// F55 — anonymous class with method
|
|
$service = new class {
|
|
public function execute(): void {
|
|
echo "running";
|
|
}
|
|
};
|