Skip to content

Commit

Permalink
Include visibility in generated function declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwelsh authored and Hamish Friedlander committed Sep 28, 2012
1 parent 48c46b3 commit 4faec23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hafriedlander/Peg/Compiler/Rule.php
Expand Up @@ -309,7 +309,7 @@ function compile($indent) {
foreach( $this->functions as $name => $function ) {
$function_name = $this->function_name( preg_match( '/^_/', $name ) ? $this->name.$name : $this->name.'_'.$name ) ;
$functions[] = implode( PHP_EOL, array(
'function ' . $function_name . ' ' . $function
'public function ' . $function_name . ' ' . $function
));
}

Expand Down

0 comments on commit 4faec23

Please sign in to comment.