'use strict';
window.onload = function() {
var data = JSON.parse(document.getElementById('swagger-data').innerText);
var config = Object.assign({
content: data.spec,
theme: 'default',
}, data.scalarExtraConfiguration || {});
Scalar.createApiReference('#swagger-ui', config);
};
Fatal error: Uncaught TypeError: Invalid return value: callable object expected, "int" returned from "/app/public/bundles/apiplatform/init-scalar-ui.js". in /app/vendor/autoload_runtime.php:12
Stack trace:
#0 /app/public/index.php(18): require_once()
#1 {main}
thrown in /app/vendor/autoload_runtime.php on line 12