Этап 1 рефакторинга: единая автозагрузка классов

- 42 файла ядра переименованы из *.class.php в *.php
- самописный spl_autoload_register удалён из core/bootstrap.php
- исправлен маппинг PSR-4: "Core\" теперь указывает на core/lib/Core/,
  а не на core/lib/. Прежнее значение было ошибочным: PSR-4 отбрасывает
  префикс Core\, поэтому composer искал классы в core/lib/Helpers/...
  вместо core/lib/Core/Helpers/... Автозагрузка composer для ядра не
  работала вовсе, из-за чего и появился второй автозагрузчик.

Попутно:
- устранены три deprecation PHP 8.4 (неявно nullable параметры)
  в FakeUserAgent::getMobileOS, Log::logToFile и Mail::__construct
- Psalm удалён из проекта: зависимость, workflow и упоминания в доках
- зафиксирована целевая платформа composer 8.4.0
- CLAUDE.md приведён в соответствие: пути файлов, автозагрузка,
  хранение секретов, отсутствие .htaccess на nginx

Проверено: линт всей кодовой базы интерпретатором 8.4, phpunit,
сверка ответов всех маршрутов и POST-сценария авторизации с
состоянием до изменений.
This commit is contained in:
rsgrinko committed 2026-08-14 00:34:17 +03:00
1 parent 9933803f36
commit dfb1c4bd14
48 files changed
+104 -1322

No files matched your search

-38
View File
@@ -1,38 +0,0 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Psalm Security Scan
on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '33 7 * * 6'
permissions:
contents: read
jobs:
php-security:
runs-on: ubuntu-latest
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Psalm Security Scan
uses: psalm/psalm-github-security-scan@f3e6fd9432bc3e44aec078572677ce9d2ef9c287
- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif