diff --git a/src/PhpSpec/CodeGenerator/Generator/MethodGeneratorInterface.php b/src/PhpSpec/CodeGenerator/Generator/MethodGeneratorInterface.php index ae812d875..45863e8af 100644 --- a/src/PhpSpec/CodeGenerator/Generator/MethodGeneratorInterface.php +++ b/src/PhpSpec/CodeGenerator/Generator/MethodGeneratorInterface.php @@ -16,5 +16,5 @@ interface MethodGeneratorInterface { const METHOD_PLACEMENT = '/}[ \n]*$/'; - const CONSTRUCTOR_PLACEMENT = '/\n(?=\s*(private|protected|public)?\s?function)/'; + const CONSTRUCTOR_PLACEMENT = '/\n(?=\s*(private|protected|public|static|final|abstract|\s)*function)/'; }