<?php
use Sentry\Laravel\Features\Concerns\ResolvesEventOrigin;
class Integration
{
public static function lazyLoadingViolationReporter()
{
return new class() {
use ResolvesEventOrigin;
};
}
}
If a function creates an anonymous class that uses a trait CodeLite will try to assign the trait to the function (lazyLoadingViolationReporter) rather then the class which causes a crash.
[08:00:10:519 DBG] [Main] Rebuilding PHP class cache...
[08:00:10:530 WRN] [Main] PHPLookupTable::RebuildClassCache: SQLITE_BUSY[5]: database is locked
[08:00:10:588 DBG] [Main] Bye
[08:00:11:005 DBG] ZombieReaperPOSIX: going down
Commenting line 1153 in PHPSourceFile.cpp out prevents the crash:
What happened?
If a function creates an anonymous class that uses a trait CodeLite will try to assign the trait to the function (
lazyLoadingViolationReporter
) rather then the class which causes a crash.Commenting line 1153 in PHPSourceFile.cpp out prevents the crash:
Version
17.10.0
Operating system
Linux