You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: store woven trait files at PSR-4 __AopProxied path to prevent collision
When the PSR-4 namespace root coincides with appDir (e.g. demos where
Demo\Example\CacheableDemo is at demos/Demo/Example/CacheableDemo.php),
the woven file was stored at the same path as the proxy file, causing
"Cannot redeclare trait" fatal errors.
Fix: WeavingTransformer registers the PSR-4 __AopProxied path via
CachePathManager.registerWovenFilePath(), and CachingTransformer uses
that path when writing and reading the woven file. The stale check is
also updated to detect moved cacheDir without false-positiving on the
renamed path.
Agent-Logs-Url: https://github.com/goaop/framework/sessions/762375e5-7940-43fd-930c-9bf97ff99bcb
Co-authored-by: lisachenko <640114+lisachenko@users.noreply.github.com>
0 commit comments