Skip to content

Commit

Permalink
Update function name
Browse files Browse the repository at this point in the history
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
  • Loading branch information
mrrobot47 committed Aug 30, 2018
1 parent 482b4f8 commit cd38bc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/helper/Shutdown_Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Shutdown_Handler {
*/
public function cleanup( $site_command ) {
$reflector = new \ReflectionObject( $site_command[0] );
$method = $reflector->getMethod( 'shutDownFunction' );
$method = $reflector->getMethod( 'shut_down_function' );
$method->setAccessible( true );
$method->invoke( $site_command[0] );
}
Expand Down
2 changes: 1 addition & 1 deletion src/helper/class-ee-site.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ private function populate_site_info( $args ) {
/**
* Shutdown function to catch and rollback from fatal errors.
*/
protected function shutDownFunction() {
protected function shut_down_function() {

$logger = \EE::get_file_logger()->withName( 'site-command' );
$error = error_get_last();
Expand Down

0 comments on commit cd38bc7

Please sign in to comment.