ignorePhpDocErrors() public method

Enable or disable ignoring phpdoc errors (non-existent classes in @param or @var).
public ignorePhpDocErrors ( boolean $bool ) : ContainerBuilder
$bool boolean
return ContainerBuilder
コード例 #1
0
 /**
  * Configure container builder.
  *
  * @param \DI\ContainerBuilder $containerBuilder
  * @param array                $settings
  *
  * @return \DI\ContainerBuilder
  */
 private static function configureContainerBuilder(DIContainerBuilder $containerBuilder, array $settings)
 {
     if (array_key_exists('use_autowiring', $settings)) {
         $containerBuilder->useAutowiring((bool) $settings['use_autowiring']);
     }
     if (array_key_exists('use_annotations', $settings)) {
         $containerBuilder->useAnnotations((bool) $settings['use_annotations']);
     }
     if (array_key_exists('ignore_phpdoc_errors', $settings)) {
         $containerBuilder->ignorePhpDocErrors((bool) $settings['ignore_phpdoc_errors']);
     }
     return $containerBuilder;
 }