Skip to content

fix: move imported PHP constants and functions - #9

Merged
NickSdot merged 1 commit into
mainfrom
fix/php-imported-constant-function-moves
Jul 17, 2026
Merged

NickSdot merged 1 commit into
mainfrom
fix/php-imported-constant-function-moves

Conversation

@NickSdot

Copy link
Copy Markdown
Member

Input:

namespace App\Http;

use const App\Config\DEFAULT_LIMIT;
use function App\Config\build_label;

Move src/Config/symbols.php to src/Shared/symbols.php.

Actual:

namespace App\Config;
use const App\Config\DEFAULT_LIMIT;
use function App\Config\build_label;

Expected:

namespace App\Shared;
use const App\Shared\DEFAULT_LIMIT;
use function App\Shared\build_label;

Solution: map top-level PHP constants/functions separately, and keep class-only rules limited to classlike symbols.

@NickSdot
NickSdot merged commit 13ef6c3 into main Jul 17, 2026
4 checks passed
@NickSdot
NickSdot deleted the fix/php-imported-constant-function-moves branch August 24, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant