Skip to content
Permalink
Browse files

Use ::class instead of string.

  • Loading branch information...
ADmad committed Aug 8, 2017
1 parent 7db8c6c commit 85ef20baf1180348ab5a7ed5806d116965f5a510
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)
));
}

0 comments on commit 85ef20b

Please sign in to comment.
You can’t perform that action at this time.