Skip to content

Commit

Permalink
Modified definitions of notify() functions to match that of their par…
Browse files Browse the repository at this point in the history
…ent in SplSubject.
  • Loading branch information
samwilson authored and swilson committed May 5, 2010
1 parent 1b2de6a commit 389442d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/calendar.php
Expand Up @@ -314,7 +314,7 @@ public function add_data(array $data)
* @param array UNIX timestamp
* @return void
*/
public function notify($data)
public function notify($data = null)
{
// Reset observed data
$this->observed_data = array
Expand Down
2 changes: 1 addition & 1 deletion classes/event/subject.php
Expand Up @@ -54,7 +54,7 @@ public function detach(SplObserver $obj)
* @param mixed message string, object, or array
* @return object
*/
public function notify($message)
public function notify($message = null)
{
foreach ($this->listeners as $obj)
{
Expand Down

0 comments on commit 389442d

Please sign in to comment.