File "InvalidType.php"
Full Path: /home/itfekxul/theolympicssports.com/wp-content/plugins/wordpress-seo/vendor/yoast/whip/src/Exceptions/InvalidType.php
File size: 515 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Yoast\WHIPv2\Exceptions;
use Exception;
/**
* Class InvalidType.
*/
class InvalidType extends Exception {
/**
* InvalidType constructor.
*
* @param string $property Property name.
* @param string $value Property value.
* @param string $expectedType Expected property type.
*/
public function __construct( $property, $value, $expectedType ) {
parent::__construct( \sprintf( '%s should be of type %s. Found %s.', $property, $expectedType, \gettype( $value ) ) );
}
}