Skip to content

Commit 00cac28

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: Use the real image URL for the filesystem tests [Finder] Update PHPdoc append() [DI] Fix phpdoc Fix code examples in PHPDoc [HttpKernel] Fix inheritdocs bumped Symfony version to 3.4.16 updated VERSION for 3.4.15 updated CHANGELOG for 3.4.15
2 parents 726003d + 6021295 commit 00cac28

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

Finder.php

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*
3232
* All methods return the current Finder object to allow easy chaining:
3333
*
34-
* $finder = Finder::create()->files()->name('*.php')->in(__DIR__);
34+
* $finder = Finder::create()->files()->name('*.php')->in(__DIR__);
3535
*
3636
* @author Fabien Potencier <[email protected]>
3737
*/
@@ -105,8 +105,8 @@ public function files()
105105
*
106106
* Usage:
107107
*
108-
* $finder->depth('> 1') // the Finder will start matching at level 1.
109-
* $finder->depth('< 3') // the Finder will descend at most 3 levels of directories below the starting point.
108+
* $finder->depth('> 1') // the Finder will start matching at level 1.
109+
* $finder->depth('< 3') // the Finder will descend at most 3 levels of directories below the starting point.
110110
*
111111
* @param string|int $level The depth level expression
112112
*
@@ -127,10 +127,10 @@ public function depth($level)
127127
*
128128
* The date must be something that strtotime() is able to parse:
129129
*
130-
* $finder->date('since yesterday');
131-
* $finder->date('until 2 days ago');
132-
* $finder->date('> now - 2 hours');
133-
* $finder->date('>= 2005-10-15');
130+
* $finder->date('since yesterday');
131+
* $finder->date('until 2 days ago');
132+
* $finder->date('> now - 2 hours');
133+
* $finder->date('>= 2005-10-15');
134134
*
135135
* @param string $date A date range string
136136
*
@@ -152,9 +152,9 @@ public function date($date)
152152
*
153153
* You can use patterns (delimited with / sign), globs or simple strings.
154154
*
155-
* $finder->name('*.php')
156-
* $finder->name('/\.php$/') // same as above
157-
* $finder->name('test.php')
155+
* $finder->name('*.php')
156+
* $finder->name('/\.php$/') // same as above
157+
* $finder->name('test.php')
158158
*
159159
* @param string $pattern A pattern (a regexp, a glob, or a string)
160160
*
@@ -190,8 +190,8 @@ public function notName($pattern)
190190
*
191191
* Strings or PCRE patterns can be used:
192192
*
193-
* $finder->contains('Lorem ipsum')
194-
* $finder->contains('/Lorem ipsum/i')
193+
* $finder->contains('Lorem ipsum')
194+
* $finder->contains('/Lorem ipsum/i')
195195
*
196196
* @param string $pattern A pattern (string or regexp)
197197
*
@@ -211,8 +211,8 @@ public function contains($pattern)
211211
*
212212
* Strings or PCRE patterns can be used:
213213
*
214-
* $finder->notContains('Lorem ipsum')
215-
* $finder->notContains('/Lorem ipsum/i')
214+
* $finder->notContains('Lorem ipsum')
215+
* $finder->notContains('/Lorem ipsum/i')
216216
*
217217
* @param string $pattern A pattern (string or regexp)
218218
*
@@ -232,8 +232,8 @@ public function notContains($pattern)
232232
*
233233
* You can use patterns (delimited with / sign) or simple strings.
234234
*
235-
* $finder->path('some/special/dir')
236-
* $finder->path('/some\/special\/dir/') // same as above
235+
* $finder->path('some/special/dir')
236+
* $finder->path('/some\/special\/dir/') // same as above
237237
*
238238
* Use only / as dirname separator.
239239
*
@@ -255,8 +255,8 @@ public function path($pattern)
255255
*
256256
* You can use patterns (delimited with / sign) or simple strings.
257257
*
258-
* $finder->notPath('some/special/dir')
259-
* $finder->notPath('/some\/special\/dir/') // same as above
258+
* $finder->notPath('some/special/dir')
259+
* $finder->notPath('/some\/special\/dir/') // same as above
260260
*
261261
* Use only / as dirname separator.
262262
*
@@ -276,9 +276,9 @@ public function notPath($pattern)
276276
/**
277277
* Adds tests for file sizes.
278278
*
279-
* $finder->size('> 10K');
280-
* $finder->size('<= 1Ki');
281-
* $finder->size(4);
279+
* $finder->size('> 10K');
280+
* $finder->size('<= 1Ki');
281+
* $finder->size(4);
282282
*
283283
* @param string|int $size A size range string or an integer
284284
*
@@ -589,7 +589,7 @@ public function getIterator()
589589
*
590590
* The set can be another Finder, an Iterator, an IteratorAggregate, or even a plain array.
591591
*
592-
* @param mixed $iterator
592+
* @param iterable $iterator
593593
*
594594
* @return $this
595595
*

Glob.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
/**
1515
* Glob matches globbing patterns against text.
1616
*
17-
* if match_glob("foo.*", "foo.bar") echo "matched\n";
17+
* if match_glob("foo.*", "foo.bar") echo "matched\n";
1818
*
19-
* // prints foo.bar and foo.baz
20-
* $regex = glob_to_regex("foo.*");
21-
* for (array('foo.bar', 'foo.baz', 'foo', 'bar') as $t)
22-
* {
23-
* if (/$regex/) echo "matched: $car\n";
24-
* }
19+
* // prints foo.bar and foo.baz
20+
* $regex = glob_to_regex("foo.*");
21+
* for (array('foo.bar', 'foo.baz', 'foo', 'bar') as $t)
22+
* {
23+
* if (/$regex/) echo "matched: $car\n";
24+
* }
2525
*
2626
* Glob implements glob(3) style matching that can be used to match
2727
* against text, rather than fetching names from a filesystem.

0 commit comments

Comments
 (0)