Commit graph

128719 commits

Author SHA1 Message Date
Translation updater bot
9655605d8c Update git submodules
* Update extensions/LoginNotify from branch 'REL1_43'
  to 959e6ce53b81e3e77e6dca070e126cad5d409a48
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I26c411c3d3e26e1ea0b0df0937758aa52c72c868
2025-06-17 06:43:45 +00:00
Translation updater bot
c906637881 Update git submodules
* Update extensions/InputBox from branch 'REL1_43'
  to a91373ce415f17e2e7d163fe557beb2c34410261
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I69ce616c6695ff3cf7fec50ab1e86875e4e9253e
2025-06-17 06:43:43 +00:00
Translation updater bot
b5e95fbde9 Update git submodules
* Update extensions/DiscussionTools from branch 'REL1_43'
  to 03f4a3dd5cefa7fb6a558d926baf2c57bad454f3
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Iaabfde3ed4437b1d5c37e91ab708ff16fddf0c18
2025-06-17 06:43:17 +00:00
Translation updater bot
a48c3d46a5 Update git submodules
* Update extensions/Gadgets from branch 'REL1_43'
  to ee04711c28245118a589d29922aea1a1d3416726
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Iea0a44b28431818e559641e584bf19edcaed8417
2025-06-17 06:43:16 +00:00
Translation updater bot
870f06bf33 Update git submodules
* Update extensions/Echo from branch 'REL1_43'
  to 6301d048d4e45501ea5110f788d3004bd05588e6
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: If73a9c5288b7e155224ac35b7b6aa936e5569c5f
2025-06-17 06:43:13 +00:00
Translation updater bot
c68112ac6f Update git submodules
* Update extensions/ConfirmEdit from branch 'REL1_43'
  to 6e00b435c8d52c28c0b69083794d13335f65c706
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I946e810df5a0ef25c9d6ab9be82110bebfa3aece
2025-06-17 06:43:01 +00:00
Translation updater bot
65da28ba64 Update git submodules
* Update extensions/Cite from branch 'REL1_43'
  to 4c966071579d2880b8ecdbeaaba6116981c5ee8a
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I82fb95e83d651620a225b46afd73d03337ec2571
2025-06-17 06:42:56 +00:00
Translation updater bot
215ea82437 Update git submodules
* Update extensions/CategoryTree from branch 'REL1_43'
  to 08f5c18ad2ef72623d0b5e248379ee424f06b132
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I56e40434dca9448ffe356cf108d33473661fa292
2025-06-17 06:42:52 +00:00
Translation updater bot
5ec92997f8 Update git submodules
* Update extensions/CiteThisPage from branch 'REL1_43'
  to 91e77043ff87dda7c2a5ef92d044f484019e18f2
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ia1cae203cea9c07cd68cbf11902d356c9dde6329
2025-06-17 06:42:51 +00:00
Translation updater bot
2b7858cd15 Update git submodules
* Update extensions/AbuseFilter from branch 'REL1_43'
  to 93323136919b9fc31a295daa9e3e4d798456d790
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I5c5b14ed4808557a6de5fd3c064cf63190750058
2025-06-17 06:42:18 +00:00
Translation updater bot
5e27e3d4c9
Localisation updates from https://translatewiki.net.
Change-Id: Id506abba0a9655c6e4d23cf2f901db8e97312661
2025-06-17 07:32:55 +02:00
libraryupgrader
39e3559052 Update git submodules
* Update extensions/Scribunto from branch 'REL1_43'
  to 0b52c3f935523678262d52ede53c44d87da115f5
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: I862eae8c1f4d0498a5bcb54d59bd047bc28b7704
2025-06-17 05:10:12 +00:00
libraryupgrader
80d488cb2b Update git submodules
* Update extensions/Math from branch 'REL1_43'
  to c26bea972a4da81588b0c316bce6fb9aa075b7bd
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: I7389228a112b530752eaefe3bc6ee942cf300ae8
2025-06-17 02:21:06 +00:00
Reedy
a18e6ca5e6 ApiQueryRevisionsBase: Cast ctype_digit() param to string
Bug: T396766
Change-Id: I22f65e63269ad985f2442176387f2ca96f7609c5
(cherry picked from commit dddeb4e16fae4bae9cd5183548e6db7b3eff2b07)
2025-06-16 14:29:08 +00:00
Reedy
59f363f9a1 Update git submodules
* Update extensions/OATHAuth from branch 'REL1_43'
  to b65dea3a6dcaaa8437601268d104b895ce93293c
  - composer.json: Upgrade endroid/qr-code to 5.1.0
    
    Change-Id: I2edc6d0a4f1a29632b9eec53b3b4fe8eb31c238e
    Depends-On: Ia44af3fde767e923e93c56dab97ee44aa7d56983
    Bug: T378424
    (cherry picked from commit 73f45143f1c90b87eac86951abbd2d913792722e)
2025-06-16 10:00:03 +00:00
Reedy
c1529e6378 Update git submodules
* Update vendor from branch 'REL1_43'
  to b96399785bdb9f6552dee8ab14f287609b73bdd2
  - Upgrade QR Code vendor libs
    
      - Upgrading bacon/bacon-qr-code (2.0.8 => v3.0.1)
      - Upgrading endroid/qr-code (4.6.1 => 5.1.0)
    
    Bug: T378424
    Change-Id: Ia44af3fde767e923e93c56dab97ee44aa7d56983
2025-06-16 09:42:09 +00:00
Reedy
d72b2152fe Update git submodules
* Update vendor from branch 'REL1_43'
  to 9f3ebcdeb98e008bf9e39d61bc48813886c05a48
  - Drop old symfony PHP polyfills
    
    Bug: T373753
    Change-Id: Iefc3dcb5f111653a4c7b857d8577bda13116562a
2025-06-16 09:41:59 +00:00
Reedy
e8d5563581 Update git submodules
* Update vendor from branch 'REL1_43'
  to 3a6cb41a8ff5f1674de76f6bd7f207263bde9fc4
  - composer.json: Bump to php >= 8.1.0
    
    Bug: T328921
    Change-Id: I59dd61b558fd33d30e1b4050616434f851fa867f
2025-06-16 09:41:47 +00:00
libraryupgrader
2ac0fe02f1 Update git submodules
* Update skins/Vector from branch 'REL1_43'
  to 2a1dadc68eae62c195b972a4a791861856610e20
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Change-Id: I3281c5b53d5865128a009aa9b341a0036fff98c9
2025-06-16 07:31:15 +00:00
libraryupgrader
7130f01910 Update git submodules
* Update extensions/WikiEditor from branch 'REL1_43'
  to 4bf41192fa5e381ff08c037cf31bed6b8c415750
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: I843a89927af3c157031ee4c82b997d7b284a82bb
2025-06-16 01:54:31 +00:00
libraryupgrader
a80952b8cb Update git submodules
* Update extensions/VisualEditor from branch 'REL1_43'
  to f2acc0d3f93c40fbc430ae87dd4c0ff0d800571d
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Change-Id: If1db84ead94e0c7922035e076df5c95677cecfb2
2025-06-16 00:42:00 +00:00
libraryupgrader
e5567c7df9 Update git submodules
* Update extensions/TitleBlacklist from branch 'REL1_43'
  to ca9ea0f7f33f46ab92c062960c9d92678c854fe3
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Change-Id: I6a0139611bd34f821dfe9a9094f1e51db92f961f
2025-06-15 22:19:55 +00:00
libraryupgrader
097c454151 Update git submodules
* Update extensions/SyntaxHighlight_GeSHi from branch 'REL1_43'
  to 2458e4da231255aebeb7f0cbc5af6ee05de8be57
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: I1a4af5ad97498eef9697a9019e23ea0e911f1a0f
2025-06-15 21:17:57 +00:00
libraryupgrader
5ef9bb659d Update git submodules
* Update extensions/SpamBlacklist from branch 'REL1_43'
  to 3a718bd49bb091f3021801c8cfb43fc14e774867
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Change-Id: I02fb580af0483a946c49ed84f903f3a181502e20
2025-06-15 20:17:07 +00:00
libraryupgrader
f95cfe2143 Update git submodules
* Update extensions/SecureLinkFixer from branch 'REL1_43'
  to b41e89cf15bb225e754c2f311e83a4cd62b336ff
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Change-Id: Ifb0d51e2d81f120950febefc7e3cea3e89701918
2025-06-15 18:28:53 +00:00
libraryupgrader
df4a0429e8 Update git submodules
* Update extensions/ReplaceText from branch 'REL1_43'
  to 86bdf5e2583a7dfc0a3cb06c79fa52476a5312d5
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: I2391ad06a1964befff6ef6a90b8f93f48c66e88e
2025-06-15 16:01:11 +00:00
Reedy
7773b68b99 Update git submodules
* Update extensions/OATHAuth from branch 'REL1_43'
  to d1b6e2291909d5174ef3dd41fe2e6ec3d7c12b57
  - TOTPKey: Use 26 byte secret for increase security
    
    Bug: T396951
    Change-Id: Ic647b5ba8b8045a086cec367c1aca3be19ce7de5
    (cherry picked from commit 9b29b3e197f9e5d63bd1661b2683ae37cc710a89)
2025-06-15 14:50:46 +00:00
libraryupgrader
58cb2a9ed4 Update git submodules
* Update extensions/Poem from branch 'REL1_43'
  to 7f17973c881e9d066e3ae584cb7415279964ee6a
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Change-Id: I155e449df3dd5581072c0d4934c134a0d912161b
2025-06-15 09:46:41 +00:00
libraryupgrader
205cf9f2e7 Update git submodules
* Update extensions/PdfHandler from branch 'REL1_43'
  to d79d7ec12ef29b5dd187de066a4b018a14f695ac
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Change-Id: I661aae5187c38c44899963b5de887becbc87a019
2025-06-15 08:17:30 +00:00
libraryupgrader
e0fc2574b5 Update git submodules
* Update extensions/ParserFunctions from branch 'REL1_43'
  to 772d6342ee4cc8a66639ff68b610dd7d5f166e61
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Change-Id: I501bc290eca66da1847f4d44dba8f6b4b24b33a6
2025-06-15 07:11:02 +00:00
libraryupgrader
9a96fe0380 Update git submodules
* Update extensions/PageImages from branch 'REL1_43'
  to 9cb5d88888b94424e60bd8c1ec48c610e927648d
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Change-Id: I79d41b9c32688cd893540b8711f3e7967330ffa5
2025-06-15 05:15:02 +00:00
libraryupgrader
7193b35a51 Update git submodules
* Update extensions/OATHAuth from branch 'REL1_43'
  to 84740397eacdd49486e2364987788bacab870466
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: Ia892c96c68983deaab88e1c56658e092ad25c7d3
2025-06-15 03:23:40 +00:00
libraryupgrader
dd8f45677e Update git submodules
* Update extensions/MultimediaViewer from branch 'REL1_43'
  to 5cda3ae02ab7a626894d798b99fc0fe700cfc96a
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: I71e62432e6388d45d835ab543cf50fec3b9b3e05
2025-06-15 00:57:07 +00:00
libraryupgrader
a3db63884c Update git submodules
* Update extensions/LoginNotify from branch 'REL1_43'
  to a20beff5d4b66aab9c593322bc376f3dc8f3f148
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Change-Id: I67c6845f2e4c8c576ad199c5a1ae0c1d0b28b7c4
2025-06-14 22:29:25 +00:00
libraryupgrader
fd166fac21 Update git submodules
* Update extensions/Linter from branch 'REL1_43'
  to e388c28fc5e0af7003499d4b3a372fa38434cfcd
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Change-Id: I6f98a58c2c2ba048a4abfc5bb3a735e3de2cd85f
2025-06-14 21:56:59 +00:00
libraryupgrader
46f67d56bf Update git submodules
* Update extensions/Interwiki from branch 'REL1_43'
  to d192f6d8099f0f0b6a3274951087c718beac45fd
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: Iec76b576ba6ccd1094318bdb2101c5e834eb7c0b
2025-06-14 18:49:03 +00:00
libraryupgrader
4c58f7b36c Update git submodules
* Update extensions/ImageMap from branch 'REL1_43'
  to 2b90dbb205282f0f604d5ea0a51366f82be9d363
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: I7c6ab8221e441edf7d6417d73af8a94fc8feeda7
2025-06-14 16:34:24 +00:00
jenkins-bot
b4e774c2b8 Merge "phpunit: Remove unused trigger_error from TestLogger" into REL1_43 2025-06-14 11:01:34 +00:00
Timo Tijhof
50b0aadc6a phpunit: Remove unused trigger_error from TestLogger
It was added in 2016 as part of SessionManager (Ic1ffea74f3, later
re-attributed to Ibb3e023e4e) by Anomie. It wasn't used at the time.

Basically, it is used for cases where we expect no logs, and the
presence of logs will then produce a failing test. The point is to do
something that PHPUnit will "complain" about by showing it. Emitting
a notice or warning is one way, another is to simply echo it, since
output is also unexpected and shown. The somewhat arbitrary mapping
from log levels to PHP error codes isn't used.

Later in 2017, he introduced the same class in php-session-serializer
(I2ebf59414ef9a9) where this part was already removed and replaced
by "echo". The version in core still used trigger_error.

== Why now ==

Triggering E_USER_ERROR is deprecated in PHP 8.4+.

Bug: T379445
Change-Id: Id1e1db80bc8fea39cd192716597e5e4a6f4966b0
(cherry picked from commit 5a1a8c14bd418c846498cd4ed99b77e45a0fcca1)
2025-06-14 10:43:47 +00:00
Timo Tijhof
f34ea0830a widget: Remove outdated try/catch wrapper from SpinnerWidget
== What ==

This method was "Copied from OOUI\Tag", which no longer does this
since last year (I42c7a7b4d, 6e4e1a1796). Apply the same change here.

== Why now ==

Triggering E_USER_ERROR is deprecated in PHP 8.4+.

Bug: T381341
Bug: T379445
Change-Id: I1bac121caf746c30996dccd7fb95c4c240742951
(cherry picked from commit 751eca89fe473cc4a649e47dd54e9ab38f7c1957)
2025-06-14 10:42:05 +00:00
libraryupgrader
37f529df85 Update git submodules
* Update extensions/Gadgets from branch 'REL1_43'
  to 6caf0899ec0a204a18dce5ecc5d19752b1c9eb12
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Change-Id: If3bc180617acbcff3b99922d7ee22901426f90c7
2025-06-14 08:46:45 +00:00
libraryupgrader
3eea4fda99 Update git submodules
* Update extensions/Echo from branch 'REL1_43'
  to d9b488106340c14c18380de89598f807954dbf3c
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: I1a6cc4f9b4f8fae4c99805786170fc9149bda995
2025-06-14 03:49:35 +00:00
libraryupgrader
0311a74536 Update git submodules
* Update extensions/DiscussionTools from branch 'REL1_43'
  to a9d987bb4c81f3da6f10ba678a415f28f27c5610
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: I017b05f99396bf4163caf3d4dcb47cd485041cd0
2025-06-14 03:02:22 +00:00
Timo Tijhof
78d252789c Setup: Update error message for composer dependencies check
== Why ==

While psr/log represents our original an first use of Composer,
this is nowadays "just" another dependency among many. It does not
justify or help understand what to do next.

== What ==

Use the same "external libraries" terminology, as on mediawiki.org.

== History ==

* 2014 (Ie66794441): Add first ever Composer dependency (psr/log)
* 2015 (Ie47467657): Add LoggerFactory with check for missing Composer
                     dependency, to address a then-common issue.
* 2015 (Ib60261237): Move check earlier, to WebStart.
* 2017 (I633a6ff23): Move check earlier, to Setup.
* 2021 (Ia81903fb2): Remove redundant exit(1).
* 2025 (I6050ec4ca): Replace deprecated E_USER_ERROR.

Change-Id: I890d1f285997ccbc04cdb378a69815982c2bf64f
(cherry picked from commit b538453cdc6438419d044854cc730706988cb908)
2025-06-13 20:54:40 +00:00
libraryupgrader
566f4f84ba Update git submodules
* Update extensions/ConfirmEdit from branch 'REL1_43'
  to a27590a6533c0480d5e446e4f6d22704cf21d89d
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: I3d24774b7b6c24fcb1c79f166606bfe4260f716a
2025-06-13 19:16:05 +00:00
Timo Tijhof
8b7f9129c3 Setup: Switch vendor error from echo+E_USER_ERROR to echo+exit
== Background ==

E_USER_ERROR is a deprecated error code for "recoverable fatal error",
a confusing description no longer used upstream and replaced by the
Throwable/Error concept, i.e. something that is meant to be fatal,
but could in theory be caught if you know what you're doing, via a
risky catch for Throwable instead of Exception.

What trigger_error with E_USER_ERROR does:

* (If we haven't sent headers yet)
  Emit header "HTTP/1.1 500 Internal Server Error".
* (If display_errors is enabled)
  Print the message, again, along with a strack trace.
* Notify set_error_handler letting you "catch" a non-Exception error.
* Write it to error_log, e.g. STDERR for composer serve and CLI,
  or an Apache/php-fpm error.log file.
* End with exit(1).

Issues:

* When enabling display_errors, the message is printed twice.
* The HTTP 500 status didn't work because headers are already sent,
  ... by the "echo" statement, right above it.

== Option A: throw Error $message ==

`throw Error($message)` is the natural successor to E_USER_ERROR.
I would recommend this, if
1) we didn't already echo it, and
2) the message didn't contain HTML, and
3) we needed to keep compat with someone catching this, or
4) we wanted a stack trace.

We echo it because display_errors can be off, and the most likely
audience for this is someone new to PHP/MediaWiki, installing in prod
or locally, when debugging is either intentionally off, or before
they're familiar with debugging modes. As such, we want to print it
ourselves either way, and printing it again as part of E_USER_ERROR
isn't needed.

The HTML part is important because one subtle difference between
trigger_error and throw Error is that the former allows raw HTML,
while the latter treats exception messages as plain text. Our message
intentionally uses HTML to link to docs in the browser, so this is
unhelpful.

The catchable-ness of this is not important to us, as no extension or
distro code (e.g. PlatformSettings.php) can run this early. There
are no runtime consumers of this error, only the end-user's browser.

== Option B: echo+exit ==

Given we already print the message, we just need to exit.

== History ==

* 2014 (Ie66794441): Add first ever Composer dependency (psr/log)
* 2015 (Ie47467657): Add LoggerFactory with check for missing Composer
                     dependency, to address a then-common issue.
* 2015 (Ib60261237): Move check earlier, to WebStart.
* 2017 (I633a6ff23): Move check earlier, to Setup.
* 2021 (Ia81903fb2): Remove redundant exit(1).

== Change ==

* Emit HTTP 500 before the echo.
* Keep echo (for browser) and error_log (for discovery via CLI or log
  file).
* Replace trigger_error with just exit(1), avoid duplicate message.

Bug: T379445
Change-Id: I6050ec4ca857d3c92c1c43f6a38e4154cd60e5d5
(cherry picked from commit 98c6d3c4c3511ecf60ffc693ff6c7164964270ca)
2025-06-13 16:57:53 +00:00
libraryupgrader
65ca36bb1d Update git submodules
* Update extensions/CodeEditor from branch 'REL1_43'
  to c76872da4a491feadaf07b3ba4cd2cd9ee363dd5
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: Ide8f6faede21586d440b0c2e9ccf6f3bc3056128
2025-06-13 11:36:54 +00:00
libraryupgrader
a8ea00feda Update git submodules
* Update extensions/CiteThisPage from branch 'REL1_43'
  to 3e8a6bd5246edd983de5564007cf24ea52bddec5
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: Iac3ffcef10438a99643ac35f219a435dfc5e587c
2025-06-13 09:58:22 +00:00
libraryupgrader
b4b4ae5cec Update git submodules
* Update extensions/Cite from branch 'REL1_43'
  to 58a51cf9d46c055488133f87f3729a32488104a5
  - build: Updating brace-expansion to 1.1.12, 2.0.2
    
    * https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
    
    Additional changes:
    * Enable stylelint caching.
    
    Change-Id: Ib25fd457bac6d5e0595e5bdc5c855a023fcb1b58
2025-06-13 09:47:32 +00:00
Timo Tijhof
83d4898319 debug: Migrate E_USER_ERROR to throw Error in DeprecationHelper
For a long time now, since PHP 7.0.0, access to non-public properties
has thrown Error, not emitted E_ERROR.

Example - https://3v4l.org/dHChU

Our simulation of this in DeprecationHelper is meant to do what PHP
does, so, given we no longer support PHP 5.6 and can thus construct
Error ourselves, we should do the same.

This is identical - https://3v4l.org/koUqu

== Why ==

Referencing the E_USER_ERROR constant causes a deprecation warning
in PHP 8.4+.

== Change ==

The source change is straight-forward.

One of the tests (testSet, dataset 4 "fallbackGetterOnly") was
previously passing by accident. The source called trigger_error twice,
first with E_USER_DEPRECATED (via wfDeprecated) and then again with
E_USER_ERROR. Given that these are asserted via set_error_handler,
an event calback, the callback is run after the callback finished
(it does not interrupt), at which point only the last values are
reported to the event handler. Improve on this by explicitly hiding
the deprecation warning, and focus the case on testing the error.

Bug: T379445
Change-Id: Ia0aff9906102023370f3907e01962a5e1e369125
(cherry picked from commit d0920b8fb5be462a7aba5c21e47b02c2c2f5025f)
2025-06-13 07:40:14 +00:00