8000 [Debug] DebugClassLoader breaks with classes defined in eval()'d code on Mac/Darwin · Issue #30362 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content 8000
[Debug] DebugClassLoader breaks with classes defined in eval()'d code on Mac/Darwin #30362
Closed
@skalpa

Description

@skalpa

Symfony version(s) affected: 3.4

Description
When loading a class defined in eval()'d code DebugClassLoader::darwinRealpath() is unable to determine the real path of the file and a notice is triggered by the return $real .= $dirFiles[$kFile]; statement.

Additional context
The KernelTestCase PHPUnit 8 compatibility fix applied in #30124 defines KernelShutdownOnTearDownTrait in an eval() block and breaks the container compilation on mac.

[ErrorException]
Notice: Undefined index: kernelshutdownonteardowntrait.php(19) : eval()'d code 
Exception trace:
 () at /www/relendex/trading-api/vendor/symfony/debug/DebugClassLoader.php:450
 spl_autoload_call() at /www/relendex/trading-api/vendor/symfony/framework-bundle/Test/KernelTestCase.php:26

(The stack trace is from 4.2@dev, but the PR was merged to 3.4).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0