-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Description
Kernel class method getName(){} has a schroedinger-bug:
when working directory starts with number, generated class has invalied php name:
pwd (root dir is): 112bgf3892d (like name, generated in teamcity etc)
fix:
public function getName()
{
if (null === $this->name)
{
//[-] $this->name = preg_replace('/[^a-zA-Z0-9_]+/', '', basename($this->rootDir));
//[+] $this->name = 'app' . preg_replace('/[^a-zA-Z0-9_]+/', '', basename($this->rootDir));
}
return $this->name;
}