Skip to content

Rename the screens' private query() helpers - #76

Merged
simonhamp merged 1 commit into
mainfrom
rename-private-query-helpers
Oct 23, 2026
Merged

simonhamp merged 1 commit into
mainfrom
rename-private-query-helpers

Conversation

@simonhamp

@simonhamp simonhamp commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

nativephp/mobile is adding a protected NativeComponent::query() that returns a screen's query string (NativePHP/mobile-air#401). AuthCallback and Remotes each have their own private function query(), and PHP won't load a class that narrows an inherited method's visibility, so both screens would fail to load with a fatal error once that ships.

This renames them to callbackQuery() and remotesQuery(). Nothing else changes, and it works with the current mobile release as well as with NativePHP/mobile-air#401, so it can merge first.

Once NativePHP/mobile-air#401 is released, AuthCallback can drop its own parsing of currentUri() and read $this->query() instead.

Tests: the full suite passes (1193). I also ran it against the NativePHP/mobile-air#401 branch with the package symlinked in. Everything passed except the arch preset, which flags debug_backtrace inside mobile's NativeComponent because a symlinked package outside vendor/ looks like app code to it.

🤖 Generated with Claude Code

nativephp/mobile is adding a protected NativeComponent::query() for a
screen's query string (NativePHP/mobile-air#401). A private query() in a
screen can't override a protected one, so PHP would refuse to load
AuthCallback and Remotes. They become callbackQuery() and remotesQuery().
No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonhamp
simonhamp marked this pull request as ready for review October 23, 2026 00:40
@simonhamp
simonhamp merged commit 29a838d into main Oct 23, 2026
1 check passed
ricardovfreixo added a commit to ricardovfreixo/dev-null-app that referenced this pull request Oct 23, 2026
Take upstream's camera 1.1 release (NativePHP#73), SDK main baseline (NativePHP#75), the
screens' private query() helper rename (NativePHP#76), the 4.2.0-rc.2 binaries
(NativePHP#77), and keep the image viewer hanging over the commit sheet without
handle-over-content, which mobile-ui no longer offers.

Constrain nativephp/mobile to dev-fix/root-tab-reselect (f06d13c, based
on mobile-air main with #557) and nativephp/mobile-ui to
dev-fix/list-root-tab-scroll-target (28753b7), the reviewed pair the
notification centre PR tests against, instead of mobile-ui main.
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