diff --git a/src/View/Form/ContextFactory.php b/src/View/Form/ContextFactory.php index d04ddf1a460..8dfea1065b0 100644 --- a/src/View/Form/ContextFactory.php +++ b/src/View/Form/ContextFactory.php @@ -143,7 +143,7 @@ public function get(ServerRequest $request, array $data = []) if (!($context instanceof ContextInterface)) { throw new RuntimeException(sprintf( 'Context providers must return object implementing %s. Got "%s" instead.', - 'Cake\View\Form\ContextInterface', + ContextInterface::class, is_object($context) ? get_class($context) : gettype($context) )); }