wiki.techinc.nl/includes/utils
Umherirrender 9efd9ca45e Add explicit casts between scalar types
* Some functions accept only string, cast ints and floats to string
* After preg_matches or explode() casts numbers to int to do maths
* Cast unix timestamps to int to do maths
* Cast return values from timestamp format function to int
* Cast bitwise operator to bool when needed as bool

* php internal functions like floor/round/ceil documented to return
  float, most cases the result is used as int, added casts

Found by phan strict checks

Change-Id: Icb2de32107f43817acc45fe296fb77acf65c1786
2022-03-01 18:19:33 +01:00
..
AutoloadGenerator.php
BatchRowIterator.php Fix typos in comments (A-B) 2021-12-26 16:43:47 +05:30
BatchRowUpdate.php
BatchRowWriter.php
ClassCollector.php Fix typos in comments (C-D) 2021-12-30 18:00:02 +05:30
ExecutableFinder.php Replace some more usages of Wikimedia\(suppress|restore)Warnings() 2022-02-24 20:27:46 +00:00
FileContentsHasher.php resourceloader: Remove support for $algo param in FileContentsHasher 2021-12-03 12:12:29 +00:00
MWCryptHKDF.php Fix typos in comments (M) 2022-01-09 23:00:20 +05:30
MWCryptRand.php
MWFileProps.php
MWRestrictions.php
README
RowUpdateGenerator.php
UIDGenerator.php
ZipDirectoryReader.php Add explicit casts between scalar types 2022-03-01 18:19:33 +01: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
MWException, 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.