It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.
If you suppress an error, we recommend checking for the error condition explicitly:
// For example instead of@mkdir($dir);// Better useif(@mkdir($dir)===false){thrownew\RuntimeException('The directory '.$dir.' could not be created.');}
Loading history...
33
}
34
4
$this->className = $className;
35
36
4
parent::__construct($dm);
37
4
}
38
39
4
public function setFoundMetadata(?ClassMetadata $classMetadata = null)
40
{
41
4
$this->foundMetadata = $classMetadata;
42
4
}
43
44
/**
45
* @return ClassMetadata|null
46
*/
47
4
public function getFoundMetadata()
48
{
49
4
return $this->foundMetadata;
50
}
51
52
/**
53
* Retrieve class name for which a failed metadata fetch attempt was executed
If you suppress an error, we recommend checking for the error condition explicitly: