Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120689 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 25616 invoked from network); 27 Jun 2023 05:44:35 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Jun 2023 05:44:35 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 268F61804B3 for ; Mon, 26 Jun 2023 22:44:32 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15576 212.103.64.0/19 X-Spam-Virus: No X-Envelope-From: Received: from mx.kolabnow.com (mx.kolabnow.com [212.103.80.155]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 26 Jun 2023 22:44:30 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 87BB2AAD for ; Tue, 27 Jun 2023 07:44:29 +0200 (CEST) Authentication-Results: ext-mx-out001.mykolab.com (amavisd-new); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:references:content-language:subject:subject :mime-version:date:date:message-id:received:received:received; s=dkim20160331; t=1687844665; x=1689659066; bh=wZOuB/z+S8Li+TCa 81ffQ9VtIbSGXR4pnmcJiF0wm/A=; b=vqhmeHVwQ+laab21/KlKwR+92vjPgWA3 oviJBGoR2RFlhN4BeBNsBXPU6zFvqiyX6heWHJbWxB6a1dqFcaEn8f00r4LeKY80 vKBtfoihu01DG8lCc9JM1OUfhQpv9ngJhi5kIxV81z5iLA/kqUcBL71dsx9A4OYa bA0xBzB02iAWjjdCKpmJE+LpG6NIlVm3qIEX2QQz2PKzb7jC2TUiOfalk2+xoCZA rphSdVUGuNtlCR3jkTc7qXtRKmrQqD1HvgiDGmomcmk+TB+CzHuFrqKrETInZ/Bb CZrueXKqYQtKqmdow6fKUh+ontn55x4lGe17jUg1p541i3ad4wajvytI5mgh7VwJ OLPEQIXXkJVv6+F6nWbNa3pNsN4xtEjeccChMJcvk5x3xUavsXDSsaQ3ycvS131A wbG0bHDeYGqsV1KWqi+1LS/IlvvGJ4HrdbN3DeYd9kx4zbjLDvB4e2PfqHLVb2X/ 50g57m4kpb8iemvzceboqO3rcouaI8WYKHKleNsXXgQW8XAhL29wOEMfyBnoyzkm 0OYaOjTUPbfteIoEMO5eiSD4ftxYrJoqqyUYXHfd0R8BgBZUlgiX+OZZI/ncv96Z /jXla8inbzROnAlhfhyrKcfBpu+nkGZTABCJBrKVs6CXAkKICdWI1gnB5wJcsDo1 PEhivZ3qDH4= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s_mzcC_wB8Br for ; Tue, 27 Jun 2023 07:44:25 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by mx.kolabnow.com (Postfix) with ESMTPS id B7C7382C for ; Tue, 27 Jun 2023 07:44:24 +0200 (CEST) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 929F4C46 for ; Tue, 27 Jun 2023 07:44:24 +0200 (CEST) Message-ID: <15ba1311-3300-83ff-737b-58c4a90a2ad2@alec.pl> Date: Tue, 27 Jun 2023 07:44:23 +0200 MIME-Version: 1.0 Content-Language: en-US To: internals@lists.php.net References: <6B872612-2F31-49E0-949C-CDF6FB2B9BE4@benramsey.com> In-Reply-To: <6B872612-2F31-49E0-949C-CDF6FB2B9BE4@benramsey.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] [Vote] Deprecate functions with overloaded signatures From: alec@alec.pl (Aleksander Machniak) On 26.06.2023 20:22, Ben Ramsey wrote: > I voted “no” on `IntlCalendar::set()` because it seems to me that `setDate()` and `setDateTime()` could share the same signature if `$hour`, `$minute`, and `$second` all default to zero, like this: > > public function setDate(int $year, int $month, int $dayOfMonth, int $hour = 0, int $minute = 0, int $second = 0): void {} > > In the same way, with `IntlGregorianCalendar::__construct()`, `createFromDate()` and `createFromDateTime()` could be combined as: > > public static function createFromDate(int $year, int $month, int $dayOfMonth, int $hour = 0, int $minute = 0, int $second = 0): void {} I also voted No on IntlCalendar and IntlGregorianCalendar changes. The proposed solution is not good enough. IntlGregorianCalendar has already a static fromDateTime() method inherited from IntlCalendar, so a new method is not needed, imo. Also, setTime() method already exists (not the best name), so addition of setDate() and setDateTime() will make it worse. -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com