<?php

/*
Plugin Name: Show do_action warning
Description: This is not just a plugin, it represents a constant frustration faced by Chris Jean for the past three months.
Author: Chris Jean
Version: 1.0.0
Author URI: http://gaarai.com/
*/

error_reporting( E_ALL );
ini_set( 'display_errors', 1 );

add_action( 'do_nothing', 'this_does_nothing' );

function this_does_nothing( $argument ) {
	// Do nothing
}

$this_works_1 = 'value';
$this_works_2 = array();
$this_works_3 = array( '1', '2', '3' );
$this_works_4 = (object) array( 'name' => 'value' );

$produces_a_warning = array( 'name' => 'value' );

do_action( 'do_nothing', $this_works_1 );
do_action( 'do_nothing', $this_works_2 );
do_action( 'do_nothing', $this_works_3 );
do_action( 'do_nothing', $this_works_4 );
do_action( 'do_nothing', $produces_a_warning );

?>
