@@ -413,7 +413,6 @@ |
||
413 | 413 | * Allows overloading the object with methods... Whooaaa oooh it's magic, y'knoooow. |
414 | 414 | * @since 1.0.0 |
415 | 415 | * @param string $method Non-existent method. |
416 | - * @param array $arguments All arguments passed to the method |
|
417 | 416 | */ |
418 | 417 | public function __call( $method, $args ) { |
419 | 418 | $object_class = strtolower( get_class( $this ) ); |
@@ -335,11 +335,11 @@ discard block |
||
335 | 335 | switch ( $message ) { |
336 | 336 | |
337 | 337 | case self::DEPRECATED_PARAM: |
338 | - $message = sprintf( __( 'The "%s" field parameter has been deprecated in favor of the "%s" parameter.', 'cmb2' ), $args[3], $args[4] ); |
|
338 | + $message = sprintf( __( 'The "%s" field parameter has been deprecated in favor of the "%s" parameter.', 'cmb2' ), $args[ 3 ], $args[ 4 ] ); |
|
339 | 339 | break; |
340 | 340 | |
341 | 341 | case self::DEPRECATED_CB_PARAM: |
342 | - $message = sprintf( __( 'Using the "%s" field parameter as a callback has been deprecated in favor of the "%s" parameter.', 'cmb2' ), $args[3], $args[4] ); |
|
342 | + $message = sprintf( __( 'Using the "%s" field parameter as a callback has been deprecated in favor of the "%s" parameter.', 'cmb2' ), $args[ 3 ], $args[ 4 ] ); |
|
343 | 343 | break; |
344 | 344 | |
345 | 345 | default: |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | public function __call( $method, $args ) { |
419 | 419 | $object_class = strtolower( get_class( $this ) ); |
420 | 420 | |
421 | - if ( ! has_filter( "{$object_class}_inherit_{$method}" ) ) { |
|
421 | + if ( ! has_filter( "{$object_class}_inherit_{$method}" ) ) { |
|
422 | 422 | throw new Exception( 'Invalid ' . get_class( $this ) . ' method: ' . $method ); |
423 | 423 | } |
424 | 424 |