Skip to content

Commit ac02c27

Browse files
Merge branch '4.0' into 4.1
* 4.0: (21 commits) [PropertyInfo] fix resolving parent|self type hints fixed CS fix merge [Security] Fix logout Cleanup 2 tests for the HttpException classes #27250 limiting GET_LOCK key up to 64 char due to changes in MySQL 5.7.5 and later [Config] Fix tests when path contains UTF chars [DI] Shared services should not be inlined in non-shared ones [Profiler] Remove propel & event_listener_loading category identifiers [Filesystem] Fix usages of error_get_last() [Cache][Lock] Fix usages of error_get_last() [Debug] Fix populating error_get_last() for handled silent errors fixed CS fixed CS fixed CS [FrameworkBundle] Fix cache:clear on vagrant [HttpKernel] Handle NoConfigurationException "onKernelException()" Fix misses calculation when calling getItems [DI] Display previous error messages when throwing unused bindings Fixed return type ...
2 parents 797df60 + 0383a1a commit ac02c27

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Node/Specificity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(int $a, int $b, int $c)
4040
$this->c = $c;
4141
}
4242

43-
public function plus(Specificity $specificity): Specificity
43+
public function plus(self $specificity): self
4444
{
4545
return new self($this->a + $specificity->a, $this->b + $specificity->b, $this->c + $specificity->c);
4646
}
@@ -56,7 +56,7 @@ public function getValue(): int
5656
*
5757
* @return int
5858
*/
59-
public function compareTo(Specificity $specificity)
59+
public function compareTo(self $specificity)
6060
{
6161
if ($this->a !== $specificity->a) {
6262
return $this->a > $specificity->a ? 1 : -1;

XPath/Translator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function selectorToXPath(SelectorNode $selector, string $prefix = 'descen
114114
return ($prefix ?: '').$this->nodeToXPath($selector);
115115
}
116116

117-
public function registerExtension(Extension\ExtensionInterface $extension): Translator
117+
public function registerExtension(Extension\ExtensionInterface $extension): self
118118
{
119119
$this->extensions[$extension->getName()] = $extension;
120120

@@ -139,7 +139,7 @@ public function getExtension(string $name): Extension\ExtensionInterface
139139
return $this->extensions[$name];
140140
}
141141

142-
public function registerParserShortcut(ParserInterface $shortcut): Translator
142+
public function registerParserShortcut(ParserInterface $shortcut): self
143143
{
144144
$this->shortcutParsers[] = $shortcut;
145145

XPath/XPathExpr.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function getElement(): string
4343
return $this->element;
4444
}
4545

46-
public function addCondition(string $condition): XPathExpr
46+
public function addCondition(string $condition): self
4747
{
4848
$this->condition = $this->condition ? sprintf('(%s) and (%s)', $this->condition, $condition) : $condition;
4949

@@ -55,7 +55,7 @@ public function getCondition(): string
5555
return $this->condition;
5656
}
5757

58-
public function addNameTest(): XPathExpr
58+
public function addNameTest(): self
5959
{
6060
if ('*' !== $this->element) {
6161
$this->addCondition('name() = '.Translator::getXpathLiteral($this->element));
@@ -65,7 +65,7 @@ public function addNameTest(): XPathExpr
6565
return $this;
6666
}
6767

68-
public function addStarPrefix(): XPathExpr
68+
public function addStarPrefix(): self
6969
{
7070
$this->path .= '*/';
7171

0 commit comments

Comments
 (0)