aboutsummaryrefslogtreecommitdiff
path: root/src/php-gettext/gettext.php
diff options
context:
space:
mode:
authorJason <jasonmm.github@gmail.com>2022-06-21 18:18:32 -0500
committerJason <jasonmm.github@gmail.com>2022-06-21 18:18:37 -0500
commitb43300fbcf92008ac1adc87c4b03776a9a4fb4e8 (patch)
tree21978beea7c1c044bb24bdc11f1cdc12393e2f3a /src/php-gettext/gettext.php
parent856e975127fff8f82b14f2886bb4ffb239541555 (diff)
downloadsemanticscuttle-b43300fbcf92008ac1adc87c4b03776a9a4fb4e8.tar.gz
semanticscuttle-b43300fbcf92008ac1adc87c4b03776a9a4fb4e8.tar.bz2
Use Rector to upgrade constructors.
Modern PHP versions do not recognize methods with the same name as the class as being constructors. This commit upgrades the code so that constructors are named `__construct`. The upgrade was done automatically using Rector.
Diffstat (limited to 'src/php-gettext/gettext.php')
-rw-r--r--src/php-gettext/gettext.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/php-gettext/gettext.php b/src/php-gettext/gettext.php
index a121f9c..5b3886e 100644
--- a/src/php-gettext/gettext.php
+++ b/src/php-gettext/gettext.php
@@ -98,7 +98,7 @@ class gettext_reader {
* @param object Reader the StreamReader object
* @param boolean enable_cache Enable or disable caching of strings (default on)
*/
- function gettext_reader($Reader, $enable_cache = true) {
+ function __construct($Reader, $enable_cache = true) {
// If there isn't a StreamReader, turn on short circuit mode.
if (! $Reader || isset($Reader->error) ) {
$this->short_circuit = true;