Skip to content

Commit 39a5801

Browse files
Merge branch '2.8' into 3.3
* 2.8: Docblock fixes
2 parents 5dcd82c + 96dcb10 commit 39a5801

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ abstract class RegisterMappingsPass implements CompilerPassInterface
6969
* only do anything if the parameter is present. (But regardless of the
7070
* value of that parameter.
7171
*
72-
* @var string
72+
* @var string|false
7373
*/
7474
protected $enabledParameter;
7575

src/Symfony/Bridge/Twig/Extension/CodeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function formatFile($file, $line, $text = null)
196196
* @param string $file An absolute file path
197197
* @param int $line The line number
198198
*
199-
* @return string A link of false
199+
* @return string|false A link or false
200200
*/
201201
public function getFileLink($file, $line)
202202
{

src/Symfony/Bundle/FrameworkBundle/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function getKernel()
6262
/**
6363
* Gets the profile associated with the current Response.
6464
*
65-
* @return HttpProfile A Profile instance
65+
* @return HttpProfile|false A Profile instance
6666
*/
6767
public function getProfile()
6868
{

src/Symfony/Component/Config/Util/XmlUtils.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static function loadFile($file, $schemaOrCallable = null)
109109
}
110110

111111
/**
112-
* Converts a \DomElement object to a PHP array.
112+
* Converts a \DOMElement object to a PHP array.
113113
*
114114
* The following rules applies during the conversion:
115115
*
@@ -123,7 +123,7 @@ public static function loadFile($file, $schemaOrCallable = null)
123123
*
124124
* * The nested-tags are converted to keys (<foo><foo>bar</foo></foo>)
125125
*
126-
* @param \DomElement $element A \DomElement instance
126+
* @param \DOMElement $element A \DOMElement instance
127127
* @param bool $checkPrefix Check prefix in an element or an attribute name
128128
*
129129
* @return array A PHP array

src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ private function loadFromExtensions(\DOMDocument $xml)
683683
}
684684

685685
/**
686-
* Converts a \DomElement object to a PHP array.
686+
* Converts a \DOMElement object to a PHP array.
687687
*
688688
* The following rules applies during the conversion:
689689
*
@@ -697,7 +697,7 @@ private function loadFromExtensions(\DOMDocument $xml)
697697
*
698698
* * The nested-tags are converted to keys (<foo><foo>bar</foo></foo>)
699699
*
700-
* @param \DomElement $element A \DomElement instance
700+
* @param \DOMElement $element A \DOMElement instance
701701
*
702702
* @return array A PHP array
703703
*/

src/Symfony/Component/Form/Extension/Core/Type/DateType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public function getBlockPrefix()
285285
private function formatTimestamps(\IntlDateFormatter $formatter, $regex, array $timestamps)
286286
{
287287
$pattern = $formatter->getPattern();
288-
$timezone = $formatter->getTimezoneId();
288+
$timezone = $formatter->getTimeZoneId();
289289
$formattedTimestamps = array();
290290

291291
$formatter->setTimeZone('UTC');

src/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function validate($value, Constraint $constraint)
4646
if ($value instanceof \DateTimeImmutable) {
4747
// If $value is immutable, convert the compared value to a
4848
// DateTimeImmutable too
49-
$comparedValue = new \DatetimeImmutable($comparedValue);
49+
$comparedValue = new \DateTimeImmutable($comparedValue);
5050
} elseif ($value instanceof \DateTimeInterface) {
5151
// Otherwise use DateTime
5252
$comparedValue = new \DateTime($comparedValue);

0 commit comments

Comments
 (0)