Skip to content

Commit d93024b

Browse files
minor #20870 Minor fixes for 3.2 (ogizanagi)
This PR was merged into the 3.2 branch. Discussion ---------- Minor fixes for 3.2 | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A This only fix minor issues in the codebase introduced in 3.2. Refs: - YamlEncoder 9366a7d - File helper: d9a8499 - VarDumper ClassStub: 788f7e8 - Cache tag based invalidation 19764af - CacheWarmer for Serializer: 810f469 - SymfonyStyle simplified test: 85e5060 - Workflow Definition builder: ffaeba3 --- There are other issues in older branches, but I guess it's not worth it for them, as it'll only add more conflicts. But for 3.2, it should be feasible. Commits ------- 7bdfc84 Minor fixes for 3.2
2 parents 0439abb + 7bdfc84 commit d93024b

File tree

9 files changed

+5
-10
lines changed

9 files changed

+5
-10
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/WorkflowDumpCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Symfony\Component\Workflow\Dumper\GraphvizDumper;
1818
use Symfony\Component\Workflow\Dumper\StateMachineGraphvizDumper;
1919
use Symfony\Component\Workflow\Marking;
20-
use Symfony\Component\Workflow\Workflow;
2120

2221
/**
2322
* @author Grégoire Pineau <lyrixx@lyrixx.info>

src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ protected function json($data, $status = 200, $headers = array(), $context = arr
137137
protected function file($file, $fileName = null, $disposition = ResponseHeaderBag::DISPOSITION_ATTACHMENT)
138138
{
139139
$response = new BinaryFileResponse($file);
140-
$response->setContentDisposition($disposition, $fileName === null ? $response->getFile()->getFileName() : $fileName);
140+
$response->setContentDisposition($disposition, $fileName === null ? $response->getFile()->getFilename() : $fileName);
141141

142142
return $response;
143143
}

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use Symfony\Component\Cache\Adapter\ProxyAdapter;
2121
use Symfony\Component\Cache\Adapter\RedisAdapter;
2222
use Symfony\Component\DependencyInjection\ContainerBuilder;
23-
use Symfony\Component\DependencyInjection\Definition;
2423
use Symfony\Component\DependencyInjection\DefinitionDecorator;
2524
use Symfony\Component\DependencyInjection\Loader\ClosureLoader;
2625
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;

src/Symfony/Component/Cache/Tests/Adapter/TagAwareAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static function tearDownAfterClass()
3030
}
3131

3232
/**
33-
* @expectedException Psr\Cache\InvalidArgumentException
33+
* @expectedException \Psr\Cache\InvalidArgumentException
3434
*/
3535
public function testInvalidTag()
3636
{

src/Symfony/Component/Cache/Tests/CacheItemTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function testTag()
6565

6666
/**
6767
* @dataProvider provideInvalidKey
68-
* @expectedException Symfony\Component\Cache\Exception\InvalidArgumentException
68+
* @expectedException \Symfony\Component\Cache\Exception\InvalidArgumentException
6969
* @expectedExceptionMessage Cache tag
7070
*/
7171
public function testInvalidTag($tag)

src/Symfony/Component/Console/Tests/Style/SymfonyStyleTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use PHPUnit_Framework_TestCase;
1515
use Symfony\Component\Console\Command\Command;
16-
use Symfony\Component\Console\Style\SymfonyStyle;
1716
use Symfony\Component\Console\Tester\CommandTester;
1817

1918
class SymfonyStyleTest extends PHPUnit_Framework_TestCase

src/Symfony/Component/Serializer/Encoder/YamlEncoder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use Symfony\Component\Yaml\Dumper;
1515
use Symfony\Component\Yaml\Parser;
16-
use Symfony\Component\Yaml\Yaml;
1716

1817
/**
1918
* Encodes YAML data.

src/Symfony/Component/VarDumper/Caster/StubCaster.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public static function castStub(Stub $c, array $a, Stub $stub, $isNested)
3131
$stub->attr = $c->attr;
3232

3333
if (Stub::TYPE_REF === $c->type && !$c->class && is_string($c->value) && !preg_match('//u', $c->value)) {
34-
$stub->type = self::TYPE_STRING;
35-
$stub->class = self::STRING_BINARY;
34+
$stub->type = Stub::TYPE_STRING;
35+
$stub->class = Stub::STRING_BINARY;
3636
}
3737

3838
return array();

src/Symfony/Component/Workflow/Tests/StateMachineTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Symfony\Component\Workflow\Tests;
44

5-
use Symfony\Component\Workflow\Marking;
65
use Symfony\Component\Workflow\StateMachine;
76

87
class StateMachineTest extends \PHPUnit_Framework_TestCase

0 commit comments

Comments
 (0)