for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YIKES Inc. Easy Mailchimp Forms Plugin.
*
* @package YIKES\EasyForms
* @author Freddie Mixell
* @license GPL2
*/
namespace YIKES\EasyForms\Exception;
use InvalidArgumentException;
* Class EmptyArray
* @since %VERSION%
class EmptyArray extends InvalidArgumentException implements Exception {
* Create a new instance of an exception when an empty array is provided.
* @param string $function The function name.
* @return static
public static function from_function( $function ) {
$message = sprintf( 'Function %s cannot receive an empty array.', $function );
return new static( $message );
}