mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 12:26:30 +00:00
minor #4380 Remove remaining usages of get_class() (fabpot)
This PR was merged into the 4.x branch.
Discussion
----------
Remove remaining usages of get_class()
Commits
-------
cf603b19c1 Remove remaining usages of get_class()
This commit is contained in:
+1
-1
@@ -233,7 +233,7 @@ class Environment
|
||||
if ($this->cache instanceof RemovableCacheInterface) {
|
||||
$this->cache->remove($name, $cls);
|
||||
} else {
|
||||
throw new \LogicException(\sprintf('The "%s" cache class does not support removing template cache as it does not implement the "RemovableCacheInterface" interface.', \get_class($this->cache)));
|
||||
throw new \LogicException(\sprintf('The "%s" cache class does not support removing template cache as it does not implement the "RemovableCacheInterface" interface.', $this->cache::class));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,9 +35,8 @@ class ConstantTest extends TestExpression
|
||||
|
||||
if ($this->getNode('arguments')->hasNode('1')) {
|
||||
$compiler
|
||||
->raw('get_class(')
|
||||
->subcompile($this->getNode('arguments')->getNode(1))
|
||||
->raw(')."::".')
|
||||
->raw('::class."::".')
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user