diff --git a/src/Command/DebugCommand.js b/src/Command/DebugCommand.js index d9be90b..7c8f841 100644 --- a/src/Command/DebugCommand.js +++ b/src/Command/DebugCommand.js @@ -127,7 +127,7 @@ Or for a specific bus only: return __jymfony.trim(docComment); } - } catch (e) { + } catch { } return ''; diff --git a/src/DependencyInjection/MessengerPass.js b/src/DependencyInjection/MessengerPass.js index d2c3f23..9b9e80b 100644 --- a/src/DependencyInjection/MessengerPass.js +++ b/src/DependencyInjection/MessengerPass.js @@ -216,7 +216,7 @@ export default class MessengerPass extends implementationOf(CompilerPassInterfac const method = (() => { try { return handlerClass.getMethod(methodName); - } catch (e) { + } catch { throw new RuntimeException(__jymfony.sprintf('Invalid handler service "%s": class "%s" must have a "%s()" method.', serviceId, handlerClass.name, methodName)); } })(); diff --git a/test/.eslintrc.json b/test/.eslintrc.json deleted file mode 100644 index fa4dd4a..0000000 --- a/test/.eslintrc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "rules": { - "no-new": "off", - "no-new-wrappers": "off", - "no-unused-expressions": "off" - } -}