Skip to content

Commit

Permalink
Use ::class instead of string.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Aug 8, 2017
1 parent 7db8c6c commit 85ef20b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Form/ContextFactory.php
Expand Up @@ -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)
));
}
Expand Down

0 comments on commit 85ef20b

Please sign in to comment.