[aur-dev] [PATCH] Rename constructors to __construct

Lukas Fleischer lfleischer at archlinux.org
Mon Jan 18 18:04:52 UTC 2016


On Sun, 17 Jan 2016 at 23:14:58, Marcel Korpel wrote:
> In PHP 7, constructor methods that have the same name as the class
> they are defined in are deprecated. Use __construct instead.
> http://php.net/manual/en/migration70.deprecated.php
> ---
>  web/lib/gettext.php | 2 +-
>  web/lib/streams.php | 6 +++---
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/web/lib/gettext.php b/web/lib/gettext.php
> index 4ccd75d..098f0e5 100644
> --- a/web/lib/gettext.php
> +++ b/web/lib/gettext.php
> [...]
> diff --git a/web/lib/streams.php b/web/lib/streams.php
> index 3cdc158..00cf6cc 100644
> --- a/web/lib/streams.php
> +++ b/web/lib/streams.php
> [...]

Note that these files originate from php-gettext. The bug is already
reported upstream [1], so waiting for an upstream fix and upgrading
those files afterwards will resolve the issue. Until then, I am fine
with this temporary fix. Thanks! :)

[1] https://bugs.launchpad.net/php-gettext/+bug/1522900


More information about the aur-dev mailing list