This commit is contained in:
Fabien Potencier 2013-03-01 11:42:10 +01:00
parent 7d9688dc6d
commit 62baab5b36
13 changed files with 13 additions and 16 deletions

View File

@ -85,6 +85,7 @@ class PropelTypeGuesser implements FormTypeGuesserInterface
//check if this is mysql enum
$choices = $column->getValueSet();
$labels = array_map('ucfirst', $choices);
return new TypeGuess('choice', array('choices' => array_combine($choices, $labels)), Guess::MEDIUM_CONFIDENCE);
}
case \PropelColumnTypes::VARCHAR:

View File

@ -14,7 +14,6 @@ namespace Symfony\Bridge\Twig\Tests\Extension;
use Symfony\Bridge\Twig\Extension\HttpKernelExtension;
use Symfony\Bridge\Twig\Tests\TestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Fragment\FragmentHandler;
class HttpKernelExtensionTest extends TestCase

View File

@ -360,6 +360,7 @@ class ClassCollectionLoader
}
$resolved[$nodeName] = $node;
unset($unresolved[$nodeName]);
return $resolved;
}
}

View File

@ -19,7 +19,6 @@ class WithComments
$string = 'string shoult not be modified';
$heredoc = <<<HD

View File

@ -237,6 +237,7 @@ class ArrayNodeDefinition extends NodeDefinition implements ParentNodeDefinition
->ifArray()
->then(function($v) {
$v['enabled'] = isset($v['enabled']) ? $v['enabled'] : true;
return $v;
})
->end()

View File

@ -13,7 +13,6 @@ namespace Symfony\Component\Form\Tests\Extension\Validator\EventListener;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormEvent;
use Symfony\Component\Form\FormError;
use Symfony\Component\Form\Extension\Validator\Constraints\Form;
use Symfony\Component\Form\Extension\Validator\EventListener\ValidationListener;
use Symfony\Component\PropertyAccess\PropertyPath;

View File

@ -258,7 +258,7 @@ class Response
* @link http://support.microsoft.com/kb/323308
*/
if (false !== stripos($this->headers->get('Content-Disposition'), 'attachment') && preg_match('/MSIE (.*?);/i', $request->server->get('HTTP_USER_AGENT'), $match) == 1 && true === $request->isSecure()) {
if(intval(preg_replace("/(MSIE )(.*?);/", "$2", $match[0])) < 9) {
if (intval(preg_replace("/(MSIE )(.*?);/", "$2", $match[0])) < 9) {
$this->headers->remove('Cache-Control');
}
}

View File

@ -225,7 +225,7 @@ class FileProfilerStorage implements ProfilerStorageInterface
return null;
}
while(true) {
while (true) {
$chunkSize = min($position, 1024);
$position -= $chunkSize;
fseek($file, $position);

View File

@ -12,8 +12,6 @@
namespace Symfony\Component\PropertyAccess\Tests;
use Symfony\Component\PropertyAccess\PropertyPath;
use Symfony\Component\PropertyAccess\Tests\Fixtures\Author;
use Symfony\Component\PropertyAccess\Tests\Fixtures\Magician;
class PropertyPathTest extends \PHPUnit_Framework_TestCase
{

View File

@ -61,7 +61,6 @@ class JsonEncoderTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($expected, $this->serializer->serialize($arr, 'json'), 'Context should not be persistent');
}
protected function getJsonSource()
{
return '{"foo":"foo","bar":["a","b"],"baz":{"key":"val","key2":"val","A B":"bar","item":[{"title":"title1"},{"title":"title2"}],"Barry":{"FooBar":{"Baz":"Ed","@id":1}}},"qux":"1"}';