Skip to content

Commit 40a3466

Browse files
committed
Merge branch '3.3' into 3.4
* 3.3: CS: recover no_break_comment [DI] Fix non-instantiables auto-discovery
2 parents b749204 + e48617b commit 40a3466

File tree

7 files changed

+13
-4
lines changed

7 files changed

+13
-4
lines changed

.php_cs.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ return PhpCsFixer\Config::create()
99
'@Symfony' => true,
1010
'@Symfony:risky' => true,
1111
'array_syntax' => array('syntax' => 'long'),
12-
'no_break_comment' => false,
1312
'protected_to_private' => false,
1413
))
1514
->setRiskyAllowed(true)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private function findClasses($namespace, $pattern, $excludePattern)
133133
throw new InvalidArgumentException(sprintf('Expected to find class "%s" in file "%s" while importing services from resource "%s", but it was not found! Check the namespace prefix used with the resource.', $class, $path, $pattern));
134134
}
135135

136-
if (!$r->isInterface() && !$r->isTrait() && !$r->isAbstract()) {
136+
if ($r->isInstantiable()) {
137137
$classes[] = $class;
138138
}
139139
}

src/Symfony/Component/Form/Util/ServerParams.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@ public function getPostMaxSize()
6262

6363
switch (substr($iniMax, -1)) {
6464
case 't': $max *= 1024;
65+
// no break
6566
case 'g': $max *= 1024;
67+
// no break
6668
case 'm': $max *= 1024;
69+
// no break
6770
case 'k': $max *= 1024;
6871
}
6972

src/Symfony/Component/HttpFoundation/File/UploadedFile.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,11 @@ public static function getMaxFilesize()
259259

260260
switch (substr($iniMax, -1)) {
261261
case 't': $max *= 1024;
262+
// no break
262263
case 'g': $max *= 1024;
264+
// no break
263265
case 'm': $max *= 1024;
266+
// no break
264267
case 'k': $max *= 1024;
265268
}
266269

src/Symfony/Component/HttpKernel/DataCollector/MemoryDataCollector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,11 @@ private function convertToBytes($memoryLimit)
9999

100100
switch (substr($memoryLimit, -1)) {
101101
case 't': $max *= 1024;
102+
// no break
102103
case 'g': $max *= 1024;
104+
// no break
103105
case 'm': $max *= 1024;
106+
// no break
104107
case 'k': $max *= 1024;
105108
}
106109

src/Symfony/Component/VarDumper/Cloner/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ private function dumpItem($dumper, $cursor, &$refs, $item)
349349
$item = clone $item;
350350
$item->type = $item->class;
351351
$item->class = $item->value;
352-
// No break;
352+
// no break
353353
case Stub::TYPE_OBJECT:
354354
case Stub::TYPE_RESOURCE:
355355
$withChildren = $children && $cursor->depth !== $this->maxDepth && $this->maxItemsPerDepth;

src/Symfony/Component/VarDumper/Dumper/CliDumper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ protected function dumpKey(Cursor $cursor)
336336
break;
337337
}
338338
$style = 'index';
339+
// no break
339340
case Cursor::HASH_ASSOC:
340341
if (is_int($key)) {
341342
$this->line .= $this->style($style, $key).' => ';
@@ -346,7 +347,7 @@ protected function dumpKey(Cursor $cursor)
346347

347348
case Cursor::HASH_RESOURCE:
348349
$key = "\0~\0".$key;
349-
// No break;
350+
// no break
350351
case Cursor::HASH_OBJECT:
351352
if (!isset($key[0]) || "\0" !== $key[0]) {
352353
$this->line .= '+'.$bin.$this->style('public', $key).': ';

0 commit comments

Comments
 (0)