|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2016-12-16 23:26 UTC] mozek007 at seznam dot cz
Description:
------------
PHP Reflection getMethod->getName return method name as lowercase.
Test script:
---------------
```
$ref = new \ReflectionClass('Imagick');
var_dump($ref->getMethod('readImageBlob')->getName()); //return lowercase value `readimageblob`.
problem found here:
https://github.com/phpstan/phpstan/pull/40
Expected result:
----------------
readImageBlob
Actual result:
--------------
readimageblob
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
cmb: Thanks for explaining. I think in this case is wrong phpdoc `public function readImageBlob ($image, $filename = null) {}` and web documentation: http://php.net/manual/en/imagick.readimageblob.php. method names are case-insensitive in PHP: Yes, but united coding style not.