Hello,

I'm finding that the ide_compat.php file is being autoloaded by composer but I can't figure out why. This is causing various problems and conflicts with other classes.

Here's an extract of my vendor/composer/autoload_classmap.php file:

PHP Code:
....
return array(
    
'Ajax' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'AppCache' => $baseDir '/app/AppCache.php',
    
'AppKernel' => $baseDir '/app/AppKernel.php',
    
'ArithmeticError' => $vendorDir '/symfony/polyfill-php70/Resources/stubs/ArithmeticError.php',
    
'ArticleModel' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'AssertionError' => $vendorDir '/symfony/polyfill-php70/Resources/stubs/AssertionError.php',
    
'Automator' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'Backend' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'BackendAlerts' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'BackendConfirm' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'BackendFile' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'BackendHelp' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'BackendIndex' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'BackendMain' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'BackendModule' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'BackendPage' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'BackendPassword' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'BackendPopup' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'BackendPreview' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'BackendSwitch' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'BackendTemplate' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php',
    
'BackendUser' => $vendorDir '/contao/core-bundle/src/Resources/contao/config/ide_compat.php'
    
..... 
This should not include the ide_compat.php classes.

Here is my composer.json:

Code:
{
    "name": "contao/standard-edition",
    "type": "project",
    "description": "Contao Open Source CMS",
    "license": "LGPL-3.0+",
    "authors": [
        {
            "name": "Leo Feyer",
            "homepage": "https://github.com/leofeyer"
        }
    ],
    "require": {
        "php": ">=5.5.0",
        "symfony/symfony": "^2.8|^3.0",
        "symfony/monolog-bundle": "^2.8",
        "symfony/swiftmailer-bundle": "^2.3",
        "sensio/distribution-bundle": "^5.0",
        "sensio/framework-extra-bundle": "^3.0.2",
        "doctrine/doctrine-bundle": "^1.6",
        "lexik/maintenance-bundle": "^2.0",
        "contao/calendar-bundle": "^4.3.2",
        "contao/comments-bundle": "^4.3",
        "contao/core-bundle": "^4.3.1",
        "contao/faq-bundle": "^4.3",
        "contao/installation-bundle": "^4.3.5",
        "contao/listing-bundle": "^4.3",
        "contao/news-bundle": "^4.3",
        "contao/newsletter-bundle": "^4.3",
        "swiftmailer/swiftmailer": "^5.4.5",
        "incenteev/composer-parameter-handler": "^2.0"
    },
    "autoload": {
        "classmap": [
            "app/AppCache.php",
            "app/AppKernel.php"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "config": {
        "component-dir": "assets",
        "preferred-install": "dist"
    },
    "extra": {
        "branch-alias": {
            "dev-develop": "4.4.x-dev"
        },
        "incenteev-parameters": {
            "file": "app/config/parameters.yml",
            "env-map": {
                "secret": "CONTAO_RANDOM_SECRET"
            }
        },
        "symfony-app-dir": "app",
        "symfony-bin-dir": "bin",
        "symfony-var-dir": "var",
        "symfony-web-dir": "web",
        "symfony-assets-install": "relative"
    },
    "scripts": {
        "post-install-cmd": [
            "Contao\\CoreBundle\\Composer\\ScriptHandler::generateRandomSecret",
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Contao\\CoreBundle\\Composer\\ScriptHandler::addDirectories",
            "Contao\\CoreBundle\\Composer\\ScriptHandler::generateSymlinks"
        ],
        "post-update-cmd": [
            "Contao\\CoreBundle\\Composer\\ScriptHandler::generateRandomSecret",
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Contao\\CoreBundle\\Composer\\ScriptHandler::addDirectories",
            "Contao\\CoreBundle\\Composer\\ScriptHandler::generateSymlinks"
        ]
    }
}
Does anyone know why this might happen? This only happens in production and does not happen on my local development version of the website.

Thanks