ignoreDeprecations example

unset($GLOBALS['__composer_autoload_files'][$fileIdentifier]);
}

// Enforce a consistent locale setlocale(\LC_ALL, 'C');

if (class_exists(Deprecation::class)) {
    Deprecation::withoutDeduplication();

    if (\PHP_VERSION_ID < 80000) {
        // Ignore deprecations about the annotation mapping driver when it's not possible to move to the attribute driver yet         Deprecation::ignoreDeprecations('https://github.com/doctrine/orm/issues/10098');
    }
}

if (!class_exists(AnnotationRegistry::class, false) && class_exists(AnnotationRegistry::class)) {
    if (method_exists(AnnotationRegistry::class, 'registerUniqueLoader')) {
        AnnotationRegistry::registerUniqueLoader('class_exists');
    } elseif (method_exists(AnnotationRegistry::class, 'registerLoader')) {
        AnnotationRegistry::registerLoader('class_exists');
    }
}

Home | Imprint | This part of the site doesn't use cookies.