Skip to content

Commit a9c94a8

Browse files
committed
Merge branch '3.1'
* 3.1: added a comment about a workaround [Finder] no PHP warning on empty directory iteration [HttpKernel] Fixed the nullable support for php 7.1 and below fixed CS [Form] Fix typo in doc comment Fix version constraint [Config] Handle open_basedir restrictions in FileLocator Fixed bad merge [DoctrineBridge][PropertyInfo] Treat Doctrine decimal type as string [bugfix] [Console] Set `Input::$interactive` to `false` when command is executed with `--quiet` as verbosity level Use JSON_UNESCAPED_SLASHES for lint commands output Fixed collapsed ChoiceType options attributes [FrameworkBundle] Remove cache clearer default value in config Consider the umask setting when dumping a file. Fixed the nullable support for php 7.1 and below Make ReflectionExtractor compatible with ReflectionType changes in PHP 7.1
2 parents b8ff8a2 + cff5f29 commit a9c94a8

File tree

6 files changed

+28
-12
lines changed

6 files changed

+28
-12
lines changed

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ private function addCacheSection(ArrayNodeDefinition $rootNode)
680680
->scalarNode('provider')
681681
->info('The service name to use as provider when the specified adapter needs one.')
682682
->end()
683-
->scalarNode('clearer')->defaultValue('cache.default_clearer')->end()
683+
->scalarNode('clearer')->end()
684684
->end()
685685
->end()
686686
->validate()

Resources/views/Form/choice_attributes.html.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
id="<?php echo $view->escape($id) ?>" name="<?php echo $view->escape($full_name) ?>"
21
<?php if ($disabled): ?>disabled="disabled" <?php endif ?>
32
<?php foreach ($choice_attr as $k => $v): ?>
43
<?php if ($v === true): ?>

Tests/Functional/CachePoolsTest.php

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,28 @@ public function doTestCachePools($options, $adapterClass)
6262
static::bootKernel($options);
6363
$container = static::$kernel->getContainer();
6464

65-
$pool = $container->get('cache.test');
66-
$this->assertInstanceOf($adapterClass, $pool);
65+
$pool1 = $container->get('cache.pool1');
66+
$this->assertInstanceOf($adapterClass, $pool1);
6767

6868
$key = 'foobar';
69-
$pool->deleteItem($key);
70-
$item = $pool->getItem($key);
69+
$pool1->deleteItem($key);
70+
$item = $pool1->getItem($key);
7171
$this->assertFalse($item->isHit());
7272

7373
$item->set('baz');
74-
$pool->save($item);
75-
$item = $pool->getItem($key);
74+
$pool1->save($item);
75+
$item = $pool1->getItem($key);
7676
$this->assertTrue($item->isHit());
7777

78+
$pool2 = $container->get('cache.pool2');
79+
$pool2->save($item);
80+
7881
$container->get('cache_clearer')->clear($container->getParameter('kernel.cache_dir'));
79-
$item = $pool->getItem($key);
82+
$item = $pool1->getItem($key);
8083
$this->assertFalse($item->isHit());
84+
85+
$item = $pool2->getItem($key);
86+
$this->assertTrue($item->isHit());
8187
}
8288

8389
protected static function createKernel(array $options = array())

Tests/Functional/app/CachePools/config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,10 @@ imports:
44
framework:
55
cache:
66
pools:
7-
cache.test:
7+
cache.pool1:
88
public: true
9+
cache.pool2:
10+
public: true
11+
adapter: cache.pool3
12+
cache.pool3:
13+
clearer: ~

Tests/Functional/app/CachePools/redis_config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ framework:
55
cache:
66
app: cache.adapter.redis
77
pools:
8-
cache.test:
8+
cache.pool1:
99
public: true
10+
cache.pool2:
11+
public: true
12+
clearer: ~

Tests/Functional/app/CachePools/redis_custom_config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@ services:
1717
framework:
1818
cache:
1919
pools:
20-
cache.test:
20+
cache.pool1:
2121
public: true
22+
cache.pool2:
23+
public: true
24+
clearer: ~

0 commit comments

Comments
 (0)