This commit is contained in:
Johannes M. Schmitt 2010-12-13 11:09:41 +01:00 committed by Fabien Potencier
parent 583340db7b
commit b3081c79e9
8 changed files with 9 additions and 10 deletions

View File

@ -73,8 +73,7 @@ class ZendExtension extends Extension
$definition = $container->findDefinition('zend.logger');
if (false === $config['log_errors'] && $definition->hasMethodCall('registerErrorHandler')) {
$container->findDefinition('zend.logger')->removeMethodCall('registerErrorHandler');
}
else {
} else {
$container->findDefinition('zend.logger')->addMethodCall('registerErrorHandler');
}
}

View File

@ -319,8 +319,8 @@ class PropertyPath implements \IteratorAggregate
return $object->$isser();
} else if ($reflClass->hasMethod('__get')) {
// needed to support magic method __get
return $object->$property;
// needed to support magic method __get
return $object->$property;
} else if ($reflClass->hasProperty($property)) {
if (!$reflClass->getProperty($property)->isPublic()) {
throw new PropertyAccessDeniedException(sprintf('Property "%s" is not public in class "%s". Maybe you should create the method "get%s()" or "is%s()"?', $property, $reflClass->getName(), ucfirst($property), ucfirst($property)));

View File

@ -423,7 +423,7 @@ class FieldTest extends \PHPUnit_Framework_TestCase
->will($this->returnValue(' a '));
$field = new TestField('title', array(
'trim' => false,
'trim' => false,
'value_transformer' => $transformer,
));

View File

@ -3,5 +3,5 @@
namespace Namespaced;
class Bar {
public static $loaded = true;
public static $loaded = true;
}

View File

@ -3,5 +3,5 @@
namespace Namespaced;
class Foo {
public static $loaded = true;
public static $loaded = true;
}

View File

@ -1,5 +1,5 @@
<?php
class Pearlike_Bar {
public static $loaded = true;
public static $loaded = true;
}

View File

@ -1,5 +1,5 @@
<?php
class Pearlike_Foo {
public static $loaded = true;
public static $loaded = true;
}

View File

@ -17,7 +17,7 @@ class MemberMetadataTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
$this->metadata = new TestMemberMetadata(
'Symfony\Tests\Component\Validator\Fixtures\Entity',
'Symfony\Tests\Component\Validator\Fixtures\Entity',
'getLastName',
'lastName'
);