mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 20:36:33 +00:00
Merge branch '1.x' into 2.x
* 1.x: fixed test fixed profiler unicity when several ones are registered
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
|
||||
* 1.35.2 (2018-XX-XX)
|
||||
|
||||
* n/a
|
||||
* fixed a regression in the way the profiler is registered in templates
|
||||
|
||||
* 1.35.1 (2018-03-02)
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ final class Twig_Profiler_NodeVisitor_Profiler extends Twig_BaseNodeVisitor
|
||||
|
||||
private function getVarName()
|
||||
{
|
||||
return sprintf('__internal_%s', hash('sha256', __METHOD__));
|
||||
return sprintf('__internal_%s', hash('sha256', $this->extensionName));
|
||||
}
|
||||
|
||||
public function getPriority()
|
||||
|
||||
@@ -80,7 +80,7 @@ class Twig_Profiler_Profile implements IteratorAggregate, Serializable
|
||||
return $this->profiles;
|
||||
}
|
||||
|
||||
public function addProfile(self $profile)
|
||||
public function addProfile(Twig_Profiler_Profile $profile)
|
||||
{
|
||||
$this->profiles[] = $profile;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user