Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4371d03

Browse filesBrowse files
minor #24854 Docblock fixes (nicolas-grekas)
This PR was merged into the 2.7 branch. Discussion ---------- Docblock fixes | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- b56bfe7 Docblock fixes
2 parents ff58ec8 + b56bfe7 commit 4371d03
Copy full SHA for 4371d03

File tree

Expand file treeCollapse file tree

7 files changed

+9
-9
lines changed
Filter options
Expand file treeCollapse file tree

7 files changed

+9
-9
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php
+1-1Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Extension/CodeExtension.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function formatFile($file, $line, $text = null)
193193
* @param string $file An absolute file path
194194
* @param int $line The line number
195195
*
196-
* @return string A link of false
196+
* @return string|false A link or false
197197
*/
198198
public function getFileLink($file, $line)
199199
{

‎src/Symfony/Bundle/FrameworkBundle/Client.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Client.php
+1-1Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/Util/XmlUtils.php
+2-2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ private function loadFromExtensions(\DOMDocument $xml)
547547
}
548548

549549
/**
550-
* Converts a \DomElement object to a PHP array.
550+
* Converts a \DOMElement object to a PHP array.
551551
*
552552
* The following rules applies during the conversion:
553553
*
@@ -561,7 +561,7 @@ private function loadFromExtensions(\DOMDocument $xml)
561561
*
562562
* * The nested-tags are converted to keys (<foo><foo>bar</foo></foo>)
563563
*
564-
* @param \DomElement $element A \DomElement instance
564+
* @param \DOMElement $element A \DOMElement instance
565565
*
566566
* @return array A PHP array
567567
*/

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/Type/DateType.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public function getName()
268268
private function formatTimestamps(\IntlDateFormatter $formatter, $regex, array $timestamps)
269269
{
270270
$pattern = $formatter->getPattern();
271-
$timezone = $formatter->getTimezoneId();
271+
$timezone = $formatter->getTimeZoneId();
272272
$formattedTimestamps = array();
273273

274274
if ($setTimeZone = \PHP_VERSION_ID >= 50500 || method_exists($formatter, 'setTimeZone')) {

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function validate($value, Constraint $constraint)
4747
if ($value instanceof \DateTimeImmutable) {
4848
// If $value is immutable, convert the compared value to a
4949
// DateTimeImmutable too
50-
$comparedValue = new \DatetimeImmutable($comparedValue);
50+
$comparedValue = new \DateTimeImmutable($comparedValue);
5151
} elseif ($value instanceof \DateTime || $value instanceof \DateTimeInterface) {
5252
// Otherwise use DateTime
5353
$comparedValue = new \DateTime($comparedValue);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.