Open
Description
Bug report
Summary
Trying to view/edit certain javascript files via manager is not working under PHP 8.4
Step to reproduce
- create a new JS file in the default file system, e.g. test.js
- enter the following content:
(function() {
console.log('test');
}());
IMPORTANT: Adding just console.log or some other code might not reproduce the issue.
- click on the JS file in the sidebar either directly or via context menu
Observed behavior
- file doesn't open
- context menu doesn't offer quick edit
Expected behavior
File should be editable
Environment
MODX version 3.1.2, PHP 8.4, Chrome
When I downgrade to PHP 8.3 everything is working as expected. Please compare the screenshot below.

