Repository navigation
Support phpBB 4.0 and start 1.6.1-dev - #45
Merged
Merged
Conversation
- composer.json: version 1.6.1-dev, and phpBB >=3.3.19,<4.1.0@dev (was <4.0.0@dev) in require and soft-require. - The header and footer "Contact us" links showed an empty box instead of the envelope on phpBB 4.0, whose icons need Font Awesome 6's classes. They now carry both sets of classes, which works on 3.3 and 4.0. - tests.yml also runs the basic checks (code sniffer, EPV) on phpBB's master branch with PHP 8.2. The phpBB 3.3 job keeps its check name. - README requirements list phpBB 4.0, and lint.yml's comment says what tests.yml covers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EPV's dev-master needs symfony/yaml 6 or older, which phpBB 4.0's Symfony 7 packages rule out, so the new phpBB 4.0 job failed to install it. That job now installs phpbb/epv:dev-epv-phpbb4 with phpBB's own composer.phar, as phpbb-extensions/test-framework does for phpBB 4.0. The phpBB 3.3 job's command is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The five released migrations declared depends_on() as "static public"; phpBB 4.0's sniffer requires "public static". Only the modifier order changes, which PHP treats the same, so migration names, dependencies and data are unchanged. - The core class's optional messenger methods argument used the ?type shortcut, which phpBB 4.0's sniffer rejects; its union-type form needs PHP 8.0, so the argument is now untyped, with its type in the docblock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EPV flags plain htmlspecialchars() in the "email is disabled" message. That link and the three similar ones in the core class's error messages, which had no escaping at all, now use phpBB's utf8_htmlspecialchars(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 19, 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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Declares phpBB 4.0 support and starts the 1.6.1-dev version. The code changes 4.0 needed are already merged: #42 (ACP radio buttons), #43 (captcha, messenger, Jabber columns) and #44 (validation fixes).
Changes
composer.json: version1.6.1-dev, and the phpBB requirement inrequireandsoft-requiregoes from>=3.3.19,<4.0.0@devto>=3.3.19,<4.1.0@dev.icon o-icon o-icon-font fa-fw fa-envelope fas), which works on 3.3 and 4.0.tests.ymlalso runs the basic checks (code sniffer, EPV) on phpBB'smasterbranch with PHP 8.2, the minimum PHP for phpBB 4.0. The phpBB 3.3 job keeps its check name,PHP 7.4 - none; the new one isPHP 8.2 - none - phpBB 4.0. EPV'sdev-masterneedssymfony/yaml6 or older, which phpBB 4.0's Symfony 7 rules out, so the 4.0 job installs EPV'sdev-epv-phpbb4branch with phpBB's owncomposer.phar, as phpbb-extensions/test-framework does for phpBB 4.0. The 3.3 job's EPV command is unchanged.depends_on()asstatic public; they now saypublic static. Only the modifier order changes, which PHP treats the same, so migration names, dependencies and data are unchanged.$messenger_methodsargument used the?typeshortcut, and the union form the 4.0 sniffer asks for needs PHP 8.0. The argument is now untyped, with its type in the docblock.mailto:links useutf8_htmlspecialchars(). EPV flagged plainhtmlspecialchars()in one, and the three in the core class's error messages had no escaping at all.lint.yml's comment says whattests.ymlcovers.Testing
Claude tested on seed-forum boards with phpBB 4.0.0-a3-dev (master) and phpBB 3.3.19:
@deprecatedin phpBB 4.0.php-lint.sh --strictis clean on PHP 7.4 and 8.4, phpBB 4.0's and 3.3's code sniffers find nothing locally, andcomposer.jsonvalidates.unserialize()inext.php(it reads phpBB's own migration data withallowed_classesoff), and twomd5()notices (submit_post()needs the message checksum). EPV exits 0 either way, so these don't fail the job.Not covered: the scaffoldBB templates on phpBB 4.0, because that third-party style wasn't installed on a 4.0 board here. Their icons were not changed.
Investigated and written by Claude on behalf of William Jacoby (bonelifer).
🤖 Generated with Claude Code