diff --git a/composer.json b/composer.json index dfa7e0e..a471018 100644 --- a/composer.json +++ b/composer.json @@ -3,12 +3,14 @@ "name": "pre/optional-catch-type", "license": "MIT", "require": { - "pre/plugin": "^0.10.0" + "pre/plugin": "^0.11.0" }, "require-dev": { "phpunit/phpunit": "^5.0|^6.0" }, "extra": { - "macros": ["source/macros.yay"] + "macros": [ + "source/macros.yay" + ] } } diff --git a/source/macros.yay b/source/macros.yay index f9dff72..3e73567 100644 --- a/source/macros.yay +++ b/source/macros.yay @@ -1,15 +1,15 @@ > { try { - ···try - } catch (\Exception T_VARIABLE·name) { - ···catch + $(try) + } catch (\Exception $(name)) { + $(catch) } }