wiki.techinc.nl/includes/utils
Bartosz Dziewoński ccd423225f Add "implements Stringable" to every class with "function __toString()"
In PHP 8, but not in PHP 7.4, every class with a __toString() function
implicitly implements the Stringable interface. Therefore, the
behavior of checks like "instanceof Stringable" differs between these
PHP versions when such classes are involved. Make every such class
implement the interface so that the behavior will be consistent.

The PHP 7.4 fallback for the Stringable interface is provided by
symfony/polyfill-php80.

Change-Id: I3f0330c2555c7d3bf99b654ed3c0b0303e257ea1
2024-06-13 00:23:39 +00:00
..
AutoloadGenerator.php Add namespace and deprecation alias to FormatJson 2024-05-16 16:28:01 +03:30
BatchRowIterator.php Migrate to IReadableDatabase::newSelectQueryBuilder 2024-05-05 17:29:51 +02:00
BatchRowUpdate.php
BatchRowWriter.php Change more uses of getDBLoadBalancerFactory() to getConnectionProvider() 2024-01-23 16:34:45 +01:00
ClassCollector.php
ExecutableFinder.php
ExtensionInfo.php Standardise all our class alias deprecation comments for ease of grepping 2024-03-19 20:11:29 +00:00
FileContentsHasher.php
GitInfo.php Add namespace and deprecation alias to FormatJson 2024-05-16 16:28:01 +03:30
MWCryptHKDF.php
MWCryptRand.php
MWFileProps.php Add namespace and deprecation alias to FileBackend 2024-05-19 22:35:58 +03:30
MWRestrictions.php Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
MWTimestamp.php Standardise all our class alias deprecation comments for ease of grepping 2024-03-19 20:11:29 +00:00
README Replace deprecated MWException 2024-01-16 21:04:33 +01:00
RowUpdateGenerator.php
UIDGenerator.php
UrlUtils.php namespace MWDebug 2024-05-03 22:59:47 +02:00
ZipDirectoryReader.php utils: zip: Fix PSR2.Classes.PropertyDeclaration.Multiple errors 2024-04-22 01:13:49 +03:00
ZipDirectoryReaderError.php

The classes in this directory are general utilities for use by any part of
MediaWiki. They do not favour any particular user interface and are not
constrained to serve any particular feature. This is similar to includes/libs,
except that some dependency on the MediaWiki framework (such as the use of
Status or wfDebug()) disqualifies them from use outside of
MediaWiki without modification.

Utilities should not use global configuration variables, rather they should rely
on the caller to configure their behaviour.