Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120683 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 85755 invoked from network); 26 Jun 2023 18:23:30 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Jun 2023 18:23:30 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 450E91804B0 for ; Mon, 26 Jun 2023 11:23:27 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 26 Jun 2023 11:23:26 -0700 (PDT) Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-be30cbe88b3so3602876276.1 for ; Mon, 26 Jun 2023 11:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; t=1687803806; x=1690395806; h=to:references:message-id:cc:date:in-reply-to:from:subject :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5ISLl6O+Wmq06JPYpCd+grlnsaDAJAQQaaOYuS7g5Zg=; b=dJeAJ00ppUWmZWrMTnSqAeyhLU2VxmOmwS/hzZiNJRCWf7sipmnxq55DiMMl1J60Xo 0h1xYcA/yBoGUAL/rk8r05+0PvhSlc5dz5DDYjj2iKT821JPDj4TUTyqVInNEYZVqCKr jAjD22qXMhvazWDBoKeDIbE4YnHmV3CtE7HfkSG0Nd1hM4WiMoZkoMXytwI8eiWYLJv0 AQN5dD9iQvoxecK0/RQHusb3MWYMLiEwOw+VsBJFPhhvs2z2Ag/r71mqZuGAFuC3DpQ8 /Jn5r8AF68Sxe/+sULgUIiHnr6mb+v/n4np2AGQ3IDUHbDtrBbGB25IOcgzSVnn1pBfY cH5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687803806; x=1690395806; h=to:references:message-id:cc:date:in-reply-to:from:subject :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5ISLl6O+Wmq06JPYpCd+grlnsaDAJAQQaaOYuS7g5Zg=; b=UDrkQixE/p1+YJJpybecMiiSm5pHWEjCsrztOeXM9ZKW+hWS5NDjUSGHMvGqwO5sLy sDuT6Kaz0IdMrsBcraRNgREpohAEOgcVvz/cP0dDiUASPBC8xFjOEENUgOiyrwgoyWm5 x9q08QdpxNwoSJp3oFXwfuOwKrPE8mE5OxsIOdwRIbw4cB8BaP6dvSMkstWsagtlaGyT JWJx3do+wHx/TOP9D7BCDQ+pLNUxAbOVeMFAH2Ep7dcu+yi6pjN6lDVHNkyQQL4MEEY9 D9zXpi1bsf3OUOY1gnGE40asoGJ/Af0xZtMwWqNIi/fogVafgvLYWhRP8cwtvy2iS1lH mXfQ== X-Gm-Message-State: AC+VfDwv6kUSKI50XkFE7Kq9i+yAk+EcIzMJlw+MZoT7NGwiIvajhadH 5JqqFCsEoUc+tIFrFjSKcNec2FNgPVlkSZNZpE9z2g== X-Google-Smtp-Source: ACHHUZ63fnQN0iGRWLHYZfUoL1OeIoenXXBwBQ/kkE7FyfegQAasvgFxteTwfDx++AhlDACHteDnRg== X-Received: by 2002:a25:ce03:0:b0:c22:82b1:17ee with SMTP id x3-20020a25ce03000000b00c2282b117eemr3323869ybe.63.1687803805918; Mon, 26 Jun 2023 11:23:25 -0700 (PDT) Received: from smtpclient.apple (h96-61-105-82.lvrgtn.broadband.dynamic.tds.net. [96.61.105.82]) by smtp.gmail.com with ESMTPSA id g64-20020a25a4c6000000b00ba73c26f0d6sm1282194ybi.15.2023.06.26.11.23.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Jun 2023 11:23:24 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_2FF55C3E-C0AD-457B-94D2-95523B3B536F"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) In-Reply-To: Date: Mon, 26 Jun 2023 13:22:52 -0500 Cc: PHP Internals List Message-ID: <6B872612-2F31-49E0-949C-CDF6FB2B9BE4@benramsey.com> References: To: =?utf-8?B?TcOhdMOpIEtvY3Npcw==?= X-Mailer: Apple Mail (2.3731.600.7) Subject: Re: [PHP-DEV] [RFC] [Vote] Deprecate functions with overloaded signatures From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_2FF55C3E-C0AD-457B-94D2-95523B3B536F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jun 26, 2023, at 08:36, M=C3=A1t=C3=A9 Kocsis = wrote: >=20 > Hi Everyone, >=20 > As previously announced on the list, I have just started the vote = about the > "Deprecate functions with overloaded signatures". >=20 > Link to the RFC: > = https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures > Link to the discussion thread: https://externals.io/message/120146 >=20 > The vote is open until 2023-07-10 16:00:00 UTC. >=20 > Regard, > M=C3=A1t=C3=A9 Clarifying my =E2=80=9Cno=E2=80=9D votes=E2=80=A6 I voted =E2=80=9Cno=E2=80=9D on `array_keys()` because I do not see = these as two different function signatures. To me, the single signature = should look like this: function array_keys(array $array, ?mixed $filter_value =3D null, = bool $strict =3D false): array {} I voted =E2=80=9Cno=E2=80=9D 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 =3D 0, int $minute =3D 0, int $second =3D 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 =3D 0, int $minute =3D 0, int $second =3D 0): = void {} Cheers, Ben --Apple-Mail=_2FF55C3E-C0AD-457B-94D2-95523B3B536F Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCZJnXfAAKCRCwLZeYnIwH Gw6GAQCFWKr+JQghKPvETcq8CCrk/fsK3yEnCQccrvXL7OHLZgD6AnDa+7HByyVV Q13ZAiCcGbU7VpF+u/369Q2aZVOGcjI= =qt3a -----END PGP SIGNATURE----- --Apple-Mail=_2FF55C3E-C0AD-457B-94D2-95523B3B536F--