Req #67975 [Opn->Csd]: Support for method naming resolution

From: Date: Mon, 20 Sep 2021 14:59:03 +0000
Subject: Req #67975 [Opn->Csd]: Support for method naming resolution
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236716@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67975&edit=1 ID: 67975 Updated by: cmb@php.net Reported by: mkurczew at gmail dot com Summary: Support for method naming resolution -Status: Open +Status: Closed Type: Feature/Change Request Package: Scripting Engine problem Operating System: * PHP Version: 5.6.0 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: As of PHP 8.1.0, there will be a first-class callable syntax[1]. [1] <https://wiki.php.net/rfc/first_class_callable_syntax> Previous Comments: ------------------------------------------------------------------------ [2014-09-08 09:01:18] mkurczew at gmail dot com Description: ------------ PHP 5.5.0 introduced ::class, which allows people to write nice unit tests that don't rely on magic strings. However, there is no way to reference a method or function in similar fashion, so in reality most of unit tests still need to rely on magic strings. Having such feature would prevent issues like https://github.com/sebastianbergmann/phpunit-mock-objects/issues/12 from appearing, and could tell me if I'm doing something wrong the second PHP finishes parsing my script's syntax. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67975&edit=1

« previous php.bugs (#236716) next »