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 629a740

Browse filesBrowse files
committed
minor #49337 Fix some phpdoc (alamirault)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- Fix some phpdoc | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> <!-- Replace this notice by a short README for your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the latest branch. - For new features, provide some code snippets to help understand usage. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Commits ------- 456ecd8 Fix some phpdoc
2 parents 0725a16 + 456ecd8 commit 629a740
Copy full SHA for 629a740

File tree

Expand file treeCollapse file tree

4 files changed

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

4 files changed

+8
-8
lines changed

‎src/Symfony/Component/ExpressionLanguage/Token.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/ExpressionLanguage/Token.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Token
3232
/**
3333
* @param string $type The type of the token (self::*_TYPE)
3434
* @param string|int|float|null $value The token value
35-
* @param int $cursor The cursor position in the source
35+
* @param int|null $cursor The cursor position in the source
3636
*/
3737
public function __construct(string $type, $value, ?int $cursor)
3838
{

‎src/Symfony/Component/Filesystem/Tests/Fixtures/MockStream/MockStream.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Filesystem/Tests/Fixtures/MockStream/MockStream.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ class MockStream
2222
/**
2323
* Opens file or URL.
2424
*
25-
* @param string $path Specifies the URL that was passed to the original function
26-
* @param string $mode The mode used to open the file, as detailed for fopen()
27-
* @param int $options Holds additional flags set by the streams API
28-
* @param string $opened_path If the path is opened successfully, and STREAM_USE_PATH is set in options,
29-
* opened_path should be set to the full path of the file/resource that was actually opened
25+
* @param string $path Specifies the URL that was passed to the original function
26+
* @param string $mode The mode used to open the file, as detailed for fopen()
27+
* @param int $options Holds additional flags set by the streams API
28+
* @param string|null $opened_path If the path is opened successfully, and STREAM_USE_PATH is set in options,
29+
* opened_path should be set to the full path of the file/resource that was actually opened
3030
*/
3131
public function stream_open(string $path, string $mode, int $options, string &$opened_path = null): bool
3232
{

‎src/Symfony/Component/Finder/Comparator/NumberComparator.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Finder/Comparator/NumberComparator.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
class NumberComparator extends Comparator
3636
{
3737
/**
38-
* @param string|int $test A comparison string or an integer
38+
* @param string|null $test A comparison string or null
3939
*
4040
* @throws \InvalidArgumentException If the test is not understood
4141
*/

‎src/Symfony/Component/Form/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformer.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformer.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class IntegerToLocalizedStringTransformer extends NumberToLocalizedStringTransfo
2525
* Constructs a transformer.
2626
*
2727
* @param bool $grouping Whether thousands should be grouped
28-
* @param int $roundingMode One of the ROUND_ constants in this class
28+
* @param int|null $roundingMode One of the ROUND_ constants in this class
2929
* @param string|null $locale locale used for transforming
3030
*/
3131
public function __construct(?bool $grouping = false, ?int $roundingMode = \NumberFormatter::ROUND_DOWN, string $locale = null)

0 commit comments

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