Repository navigation
build: exclude the legacy global classes from the PSR-4 classmap - #1621
Merged
Merged
Conversation
`composer install --optimize-autoloader`, as release.yml runs it, scans the PSR-4 root `includes/` for `Sbpp\` and warns about the classes there that aren't in that namespace: the global enums, LightOpenID and the SteamID classes. init.php loads them with require_once, so they were skipped anyway. Exclude them from the classmap, which leaves the generated autoloader identical and drops the eight warnings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
All contributors have signed the CLA ✍️ ✅ |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
ChrisTX
added a commit
to ChrisTX/aur-packages
that referenced
this pull request
Nov 5, 2026
- composer-exclude-legacy-classes.patch, sbpp/sourcebans-pp#1621 as it is: composer's optimised autoloader no longer warns about the 8 classes outside Sbpp\ in includes/; the package is the same - LICENSES/Elastic-2.0.txt for the patch, which is of the web panel and thus under its licence Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
archlinux-github
pushed a commit
to archlinux/aur
that referenced
this pull request
Nov 5, 2026
- composer-exclude-legacy-classes.patch, sbpp/sourcebans-pp#1621 as it is: composer's optimised autoloader no longer warns about the 8 classes outside Sbpp\ in includes/; the package is the same - LICENSES/Elastic-2.0.txt for the patch, which is of the web panel and thus under its licence Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rumblefrog
approved these changes
Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
exclude-from-classmaptoweb/composer.jsonfor the files under the PSR-4 rootincludes/whose classes aren't inSbpp\:Auth/openid.php(LightOpenID),BanRemoval.php,BanType.php,LogSearchType.php,LogType.php,WebPermission.phpandSteamID/.Motivation and Context
composer install --optimize-autoloader, asrelease.ymlruns it, scansincludes/for theSbpp\namespace and prints a warning for each of these classes:They're loaded with
require_onceininit.php, so skipping them is right; excluding them just makes that explicit and keeps the build output clean, so a real PSR-4 mistake in a new file would stand out.How Has This Been Tested?
composer dump-autoload --optimize --no-devprints no warnings, and the generatedautoload_classmap.phpis byte-for-byte identical to the one frommain.composer validatepasses; the lock file isn't affected.Types of changes
Checklist:
🤖 Generated with Claude Code