-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] Make sure the function matches the parent return type #25261
[4.0] Make sure the function matches the parent return type #25261
Conversation
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
Also for clarity, on the Everything that's been typehinted is either new API for CMS 4.0 or Framework 2.0, or exists in a non-extendable scope (final class, private method, etc.). Anything that already exists in a stable CMS 3.x or Framework 1.x shouldn't be typehinted because of B/C breaks in changing signatures, unless the change was explicitly vetted (and there are some, but they're the exception to the rule). That one slipped in because we lost the |
@roland-d Is it ready for testing? |
@mbabker Thanks for the input @richard67 It should be ready now, I cleaned up the test instructions. |
Tested this locally and works. Thanks! |
@wilsonge Bad boy 👅 . I was so keen on testing it, and now you merged already 😄 |
sorrrrrrry :/ |
Summary of Changes
This fixes a fatal error when accessing the site
Fatal error: Declaration of Joomla\CMS\Session\Storage\JoomlaStorage::setOptions(array $options) must be compatible with Joomla\Session\Storage\NativeStorage::setOptions(array $options): Joomla\Session\Storage\NativeStorage in libraries/src/Session/Storage/JoomlaStorage.php on line 23
Testing Instructions
composer update
Expected result
The site loads
Actual result
The site doesn't load
Documentation Changes Required
None
Pinging @wilsonge