php_testability icon indicating copy to clipboard operation
php_testability copied to clipboard

php5.5 ::class static call should not be reported

Open edsonmedina opened this issue 9 years ago • 1 comments

http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.class.class

edsonmedina avatar Mar 10 '15 12:03 edsonmedina

Seems reasonable, but, to be clear, this is a “class constant”, not a “static method call”. Also, depending on the context, coupling something to a specific class may make something more difficult to test. (It depends a lot on what this is used for.) parent::class, self::class and static::class should never impede testing, I believe.

loren-osborn avatar Jan 12 '18 04:01 loren-osborn