Skip to content

Commit 995c394

Browse files
committed
Make the $name parameter in Babble_Plugin::setup() a required parameter, avoid throwing an exception. See #218.
1 parent ae30b96 commit 995c394

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

class-plugin.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ class Babble_Plugin {
108108
* @return void
109109
* @author Simon Wheatley
110110
**/
111-
public function setup( $name = '', $type = null ) {
112-
if ( ! $name )
113-
throw new exception( "Please pass the name parameter into the setup method." );
111+
public function setup( $name, $type = null ) {
114112
$this->name = $name;
115113

116114
// Attempt to handle a Windows

0 commit comments

Comments
 (0)