vendor/composer/autoload_static.php
Avoid using static access to class '\Closure' in method 'getInitializer'. Open
Open
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInite5eca23334d547f58d55dd3321eace6e::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInite5eca23334d547f58d55dd3321eace6e::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInite5eca23334d547f58d55dd3321eace6e::$classMap;
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid excessively long class names like ComposerStaticInite5eca23334d547f58d55dd3321eace6e. Keep class name length under 40. Open
Open
class ComposerStaticInite5eca23334d547f58d55dd3321eace6e
{
public static $prefixLengthsPsr4 = array (
'K' =>
array (
- Read upRead up
- Exclude checks
LongClassName
Since: 2.9
Detects when classes or interfaces are declared with excessively long names.
Example
class ATooLongClassNameThatHintsAtADesignProblem {
}
interface ATooLongInterfaceNameThatHintsAtADesignProblem {
}