Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118257 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 25519 invoked from network); 12 Jul 2022 14:09:54 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Jul 2022 14:09:54 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 42C42180505 for ; Tue, 12 Jul 2022 09:04: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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 176.9.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 12 Jul 2022 09:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1657641864; bh=8uwEczIiOnSM9oDUGvvYmjIwu6BpLwg5F3yWGPJ3G5I=; h=Date:Subject:To:References:From:In-Reply-To:From; b=I6pC1VkXr44hajjh7vbsrIlVjD+6keeisF2zCuSzra9YIhEpxmqSFBUSqdTRoo9ow /TYiw/JVOgy63K9jaOd7cK4fmLSRcdOKJOeirEXH7arWs82yOWBVapQsICAWDqwGVZ VbQJVM8vViDZboh2KeHfQvUNhNtQzl3qltbexZZtLQ97cvhf1couRPE9w22frIBr+u PadLj1R9eA//ajbiH7jSjKvaOE8kkMf6RjoEbZlTV2myv9/2QQQ6+Nj9XNCCQvxFzo nSQPrLM0G9JiY2c/v2T4lr9TI8p5R0sEqjLObtXCFDfZt3PMVEbnUjsynU/8gXILuo xAtCRy9nxVl6g== Message-ID: Date: Tue, 12 Jul 2022 18:04:21 +0200 MIME-Version: 1.0 Content-Language: en-US To: Go Kudo , internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Re: [VOTE] Random Extension Improvement From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=c3=bcsterhus?=) Hi On 7/12/22 14:26, Go Kudo wrote: > Currently, the renaming of Randomizer::shuffleString() to > Randomizer::shuffleBytes() seems acceptable. > > I forgot to note the change regarding arguments when I submitted this RFC. > With this change, the argument was supposed to be changed from `string > $string` to `string $bytes`. > > - https://github.com/php/php-src/pull/8094#discussion_r916630626 > > Is this change acceptable? Or should I keep `string $string`? I believe if the method name changes, then the parameter names are also open for adjustment. Especially in this case of a single parameter method where it is unlikely that named parameters are used by the developer. I also think that both '$string' and '$binary' are appropriate parameter names in this case, so particular preference from my side. Best regards Tim Düsterhus