Merge branch '1.x' into 2.x

* 1.x:
  fixed test
  fixed profiler unicity when several ones are registered
This commit is contained in:
Fabien Potencier
2018-03-03 08:19:03 -08:00
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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()
+1 -1
View File
@@ -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;
}