Skip to content

0.12.26+: [autoload_files] typo3/cms-core: Could not read file: .../vendor/typo3/cms-core/Resources/PHP/GlobalDebugFunctions.php #3426

@possi

Description

@possi

Bug report

https://packagist.org/packages/typo3/cms-core contains an autoload-file: Resources/PHP/GlobalDebugFunctions.php.
But Typo3 comes with a composer-plugin, which moves files to a different direcotry (public/typo3/sysext/ instead of vendor/typo3/).
The plugin alters composer autoload correctly. require "vendor/autoload.php"; works flawless, but phpstan ^0.12.26 doesn't.
It tries to require the file without respecting vendor/composer/autoload_files.php.

Code snippet that reproduces the problem

composer.json:

  "require": {
    "typo3/cms-core": "*",
  }

helloworld.php:

<?php

Actual output

 ------ ------------------------------------------------------------------------------------------------------------------------------
  Line   helloworld.php
 ------ ------------------------------------------------------------------------------------------------------------------------------
         Could not read file:
         .../vendor/typo3/cms-core/Resources/PHP/GlobalDebugFunctions.php
 ------ ------------------------------------------------------------------------------------------------------------------------------

Expected output

 [OK] No errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions