Fixed bugs in names of classes and methods.
This commit is contained in:
parent
c4069a4016
commit
c41aa03c48
@ -823,10 +823,10 @@ class FrameworkExtension extends Extension
|
|||||||
|
|
||||||
if (is_dir($dir = $dirname.'/Resources/config/validation')) {
|
if (is_dir($dir = $dirname.'/Resources/config/validation')) {
|
||||||
foreach (Finder::create()->files()->in($dir)->name('*.xml') as $file) {
|
foreach (Finder::create()->files()->in($dir)->name('*.xml') as $file) {
|
||||||
$files[0][] = $file->getRealpath();
|
$files[0][] = $file->getRealPath();
|
||||||
}
|
}
|
||||||
foreach (Finder::create()->files()->in($dir)->name('*.yml') as $file) {
|
foreach (Finder::create()->files()->in($dir)->name('*.yml') as $file) {
|
||||||
$files[1][] = $file->getRealpath();
|
$files[1][] = $file->getRealPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
$container->addResource(new DirectoryResource($dir));
|
$container->addResource(new DirectoryResource($dir));
|
||||||
@ -944,13 +944,13 @@ class FrameworkExtension extends Extension
|
|||||||
|
|
||||||
if (is_dir($dir = $dirname.'/Resources/config/serialization')) {
|
if (is_dir($dir = $dirname.'/Resources/config/serialization')) {
|
||||||
foreach (Finder::create()->files()->in($dir)->name('*.xml') as $file) {
|
foreach (Finder::create()->files()->in($dir)->name('*.xml') as $file) {
|
||||||
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\XmlFileLoader', array($file->getRealpath()));
|
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\XmlFileLoader', array($file->getRealPath()));
|
||||||
$definition->setPublic(false);
|
$definition->setPublic(false);
|
||||||
|
|
||||||
$serializerLoaders[] = $definition;
|
$serializerLoaders[] = $definition;
|
||||||
}
|
}
|
||||||
foreach (Finder::create()->files()->in($dir)->name('*.yml') as $file) {
|
foreach (Finder::create()->files()->in($dir)->name('*.yml') as $file) {
|
||||||
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\YamlFileLoader', array($file->getRealpath()));
|
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\YamlFileLoader', array($file->getRealPath()));
|
||||||
$definition->setPublic(false);
|
$definition->setPublic(false);
|
||||||
|
|
||||||
$serializerLoaders[] = $definition;
|
$serializerLoaders[] = $definition;
|
||||||
|
@ -58,7 +58,7 @@ class TranslationLoader
|
|||||||
$extension = $catalogue->getLocale().'.'.$format;
|
$extension = $catalogue->getLocale().'.'.$format;
|
||||||
$files = $finder->files()->name('*.'.$extension)->in($directory);
|
$files = $finder->files()->name('*.'.$extension)->in($directory);
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
$domain = substr($file->getFileName(), 0, -1 * strlen($extension) - 1);
|
$domain = substr($file->getFilename(), 0, -1 * strlen($extension) - 1);
|
||||||
$catalogue->addCatalogue($loader->load($file->getPathname(), $catalogue->getLocale(), $domain));
|
$catalogue->addCatalogue($loader->load($file->getPathname(), $catalogue->getLocale(), $domain));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -123,7 +123,7 @@ class XmlUtils
|
|||||||
*
|
*
|
||||||
* @return array A PHP array
|
* @return array A PHP array
|
||||||
*/
|
*/
|
||||||
public static function convertDomElementToArray(\DomElement $element, $checkPrefix = true)
|
public static function convertDomElementToArray(\DOMElement $element, $checkPrefix = true)
|
||||||
{
|
{
|
||||||
$prefix = (string) $element->prefix;
|
$prefix = (string) $element->prefix;
|
||||||
$empty = true;
|
$empty = true;
|
||||||
|
@ -66,7 +66,7 @@ class SymfonyQuestionHelper extends QuestionHelper
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case $question instanceof ChoiceQuestion && $question->isMultiSelect():
|
case $question instanceof ChoiceQuestion && $question->isMultiselect():
|
||||||
$choices = $question->getChoices();
|
$choices = $question->getChoices();
|
||||||
$default = explode(',', $default);
|
$default = explode(',', $default);
|
||||||
|
|
||||||
|
@ -423,7 +423,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
|
|||||||
$application->add(new \FooCommand());
|
$application->add(new \FooCommand());
|
||||||
$application->add(new \Foo1Command());
|
$application->add(new \Foo1Command());
|
||||||
$application->add(new \Foo2Command());
|
$application->add(new \Foo2Command());
|
||||||
$application->add(new \foo3Command());
|
$application->add(new \Foo3Command());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$application->find('Unknown-namespace:Unknown-command');
|
$application->find('Unknown-namespace:Unknown-command');
|
||||||
|
@ -13,7 +13,7 @@ namespace Symfony\Component\Debug\Tests;
|
|||||||
|
|
||||||
use Symfony\Component\Debug\ExceptionHandler;
|
use Symfony\Component\Debug\ExceptionHandler;
|
||||||
|
|
||||||
class MockExceptionHandler extends Exceptionhandler
|
class MockExceptionHandler extends ExceptionHandler
|
||||||
{
|
{
|
||||||
public $e;
|
public $e;
|
||||||
|
|
||||||
|
@ -564,7 +564,7 @@ EOF
|
|||||||
*
|
*
|
||||||
* @return array A PHP array
|
* @return array A PHP array
|
||||||
*/
|
*/
|
||||||
public static function convertDomElementToArray(\DomElement $element)
|
public static function convertDomElementToArray(\DOMElement $element)
|
||||||
{
|
{
|
||||||
return XmlUtils::convertDomElementToArray($element);
|
return XmlUtils::convertDomElementToArray($element);
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ class PhpDumperTest extends \PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
array(array('foo' => new Definition('stdClass'))),
|
array(array('foo' => new Definition('stdClass'))),
|
||||||
array(array('foo' => new Expression('service("foo").foo() ~ (container.hasparameter("foo") ? parameter("foo") : "default")'))),
|
array(array('foo' => new Expression('service("foo").foo() ~ (container.hasParameter("foo") ? parameter("foo") : "default")'))),
|
||||||
array(array('foo' => new Reference('foo'))),
|
array(array('foo' => new Reference('foo'))),
|
||||||
array(array('foo' => new Variable('foo'))),
|
array(array('foo' => new Variable('foo'))),
|
||||||
);
|
);
|
||||||
|
@ -50,7 +50,7 @@ $container
|
|||||||
->addMethodCall('setBar', array(new Reference('foo2', ContainerInterface::NULL_ON_INVALID_REFERENCE)))
|
->addMethodCall('setBar', array(new Reference('foo2', ContainerInterface::NULL_ON_INVALID_REFERENCE)))
|
||||||
->addMethodCall('setBar', array(new Reference('foo3', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)))
|
->addMethodCall('setBar', array(new Reference('foo3', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)))
|
||||||
->addMethodCall('setBar', array(new Reference('foobaz', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)))
|
->addMethodCall('setBar', array(new Reference('foobaz', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)))
|
||||||
->addMethodCall('setBar', array(new Expression('service("foo").foo() ~ (container.hasparameter("foo") ? parameter("foo") : "default")')))
|
->addMethodCall('setBar', array(new Expression('service("foo").foo() ~ (container.hasParameter("foo") ? parameter("foo") : "default")')))
|
||||||
;
|
;
|
||||||
$container
|
$container
|
||||||
->register('foo_with_inline', 'Foo')
|
->register('foo_with_inline', 'Foo')
|
||||||
|
@ -248,7 +248,7 @@ class ProjectServiceContainer extends Container
|
|||||||
if ($this->has('foobaz')) {
|
if ($this->has('foobaz')) {
|
||||||
$instance->setBar($this->get('foobaz', ContainerInterface::NULL_ON_INVALID_REFERENCE));
|
$instance->setBar($this->get('foobaz', ContainerInterface::NULL_ON_INVALID_REFERENCE));
|
||||||
}
|
}
|
||||||
$instance->setBar(($this->get("foo")->foo() . (($this->hasparameter("foo")) ? ($this->getParameter("foo")) : ("default"))));
|
$instance->setBar(($this->get("foo")->foo() . (($this->hasParameter("foo")) ? ($this->getParameter("foo")) : ("default"))));
|
||||||
|
|
||||||
return $instance;
|
return $instance;
|
||||||
}
|
}
|
||||||
|
@ -246,7 +246,7 @@ class ProjectServiceContainer extends Container
|
|||||||
|
|
||||||
$instance->setBar($this->get('foo'));
|
$instance->setBar($this->get('foo'));
|
||||||
$instance->setBar(NULL);
|
$instance->setBar(NULL);
|
||||||
$instance->setBar(($this->get("foo")->foo() . (($this->hasparameter("foo")) ? ($this->getParameter("foo")) : ("default"))));
|
$instance->setBar(($this->get("foo")->foo() . (($this->hasParameter("foo")) ? ($this->getParameter("foo")) : ("default"))));
|
||||||
|
|
||||||
return $instance;
|
return $instance;
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
<service id="method_call1" class="FooClass">
|
<service id="method_call1" class="FooClass">
|
||||||
<call method="setBar" />
|
<call method="setBar" />
|
||||||
<call method="setBar">
|
<call method="setBar">
|
||||||
<argument type="expression">service("foo").foo() ~ (container.hasparameter("foo") ? parameter("foo") : "default")</argument>
|
<argument type="expression">service("foo").foo() ~ (container.hasParameter("foo") ? parameter("foo") : "default")</argument>
|
||||||
</call>
|
</call>
|
||||||
</service>
|
</service>
|
||||||
<service id="method_call2" class="FooClass">
|
<service id="method_call2" class="FooClass">
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
<argument type="service" id="foobaz" on-invalid="ignore"/>
|
<argument type="service" id="foobaz" on-invalid="ignore"/>
|
||||||
</call>
|
</call>
|
||||||
<call method="setBar">
|
<call method="setBar">
|
||||||
<argument type="expression">service("foo").foo() ~ (container.hasparameter("foo") ? parameter("foo") : "default")</argument>
|
<argument type="expression">service("foo").foo() ~ (container.hasParameter("foo") ? parameter("foo") : "default")</argument>
|
||||||
</call>
|
</call>
|
||||||
</service>
|
</service>
|
||||||
<service id="foo_with_inline" class="Foo">
|
<service id="foo_with_inline" class="Foo">
|
||||||
|
@ -14,7 +14,7 @@ services:
|
|||||||
calls:
|
calls:
|
||||||
- [ setBar, [] ]
|
- [ setBar, [] ]
|
||||||
- [ setBar ]
|
- [ setBar ]
|
||||||
- [ setBar, ['@=service("foo").foo() ~ (container.hasparameter("foo") ? parameter("foo") : "default")'] ]
|
- [ setBar, ['@=service("foo").foo() ~ (container.hasParameter("foo") ? parameter("foo") : "default")'] ]
|
||||||
method_call2:
|
method_call2:
|
||||||
class: FooClass
|
class: FooClass
|
||||||
calls:
|
calls:
|
||||||
|
@ -36,7 +36,7 @@ services:
|
|||||||
- [setBar, ['@?foo2']]
|
- [setBar, ['@?foo2']]
|
||||||
- [setBar, ['@?foo3']]
|
- [setBar, ['@?foo3']]
|
||||||
- [setBar, ['@?foobaz']]
|
- [setBar, ['@?foobaz']]
|
||||||
- [setBar, ['@=service("foo").foo() ~ (container.hasparameter("foo") ? parameter("foo") : "default")']]
|
- [setBar, ['@=service("foo").foo() ~ (container.hasParameter("foo") ? parameter("foo") : "default")']]
|
||||||
|
|
||||||
foo_with_inline:
|
foo_with_inline:
|
||||||
class: Foo
|
class: Foo
|
||||||
|
@ -260,7 +260,7 @@ class XmlFileLoaderTest extends \PHPUnit_Framework_TestCase
|
|||||||
$this->assertEquals('sc_configure', $services['configurator1']->getConfigurator(), '->load() parses the configurator tag');
|
$this->assertEquals('sc_configure', $services['configurator1']->getConfigurator(), '->load() parses the configurator tag');
|
||||||
$this->assertEquals(array(new Reference('baz', ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, false), 'configure'), $services['configurator2']->getConfigurator(), '->load() parses the configurator tag');
|
$this->assertEquals(array(new Reference('baz', ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, false), 'configure'), $services['configurator2']->getConfigurator(), '->load() parses the configurator tag');
|
||||||
$this->assertEquals(array('BazClass', 'configureStatic'), $services['configurator3']->getConfigurator(), '->load() parses the configurator tag');
|
$this->assertEquals(array('BazClass', 'configureStatic'), $services['configurator3']->getConfigurator(), '->load() parses the configurator tag');
|
||||||
$this->assertEquals(array(array('setBar', array()), array('setBar', array(new Expression('service("foo").foo() ~ (container.hasparameter("foo") ? parameter("foo") : "default")')))), $services['method_call1']->getMethodCalls(), '->load() parses the method_call tag');
|
$this->assertEquals(array(array('setBar', array()), array('setBar', array(new Expression('service("foo").foo() ~ (container.hasParameter("foo") ? parameter("foo") : "default")')))), $services['method_call1']->getMethodCalls(), '->load() parses the method_call tag');
|
||||||
$this->assertEquals(array(array('setBar', array('foo', new Reference('foo'), array(true, false)))), $services['method_call2']->getMethodCalls(), '->load() parses the method_call tag');
|
$this->assertEquals(array(array('setBar', array('foo', new Reference('foo'), array(true, false)))), $services['method_call2']->getMethodCalls(), '->load() parses the method_call tag');
|
||||||
$this->assertEquals('factory', $services['new_factory1']->getFactory(), '->load() parses the factory tag');
|
$this->assertEquals('factory', $services['new_factory1']->getFactory(), '->load() parses the factory tag');
|
||||||
$this->assertEquals(array(new Reference('baz', ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, false), 'getClass'), $services['new_factory2']->getFactory(), '->load() parses the factory tag');
|
$this->assertEquals(array(new Reference('baz', ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, false), 'getClass'), $services['new_factory2']->getFactory(), '->load() parses the factory tag');
|
||||||
|
@ -157,7 +157,7 @@ class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase
|
|||||||
$this->assertEquals('sc_configure', $services['configurator1']->getConfigurator(), '->load() parses the configurator tag');
|
$this->assertEquals('sc_configure', $services['configurator1']->getConfigurator(), '->load() parses the configurator tag');
|
||||||
$this->assertEquals(array(new Reference('baz'), 'configure'), $services['configurator2']->getConfigurator(), '->load() parses the configurator tag');
|
$this->assertEquals(array(new Reference('baz'), 'configure'), $services['configurator2']->getConfigurator(), '->load() parses the configurator tag');
|
||||||
$this->assertEquals(array('BazClass', 'configureStatic'), $services['configurator3']->getConfigurator(), '->load() parses the configurator tag');
|
$this->assertEquals(array('BazClass', 'configureStatic'), $services['configurator3']->getConfigurator(), '->load() parses the configurator tag');
|
||||||
$this->assertEquals(array(array('setBar', array()), array('setBar', array()), array('setBar', array(new Expression('service("foo").foo() ~ (container.hasparameter("foo") ? parameter("foo") : "default")')))), $services['method_call1']->getMethodCalls(), '->load() parses the method_call tag');
|
$this->assertEquals(array(array('setBar', array()), array('setBar', array()), array('setBar', array(new Expression('service("foo").foo() ~ (container.hasParameter("foo") ? parameter("foo") : "default")')))), $services['method_call1']->getMethodCalls(), '->load() parses the method_call tag');
|
||||||
$this->assertEquals(array(array('setBar', array('foo', new Reference('foo'), array(true, false)))), $services['method_call2']->getMethodCalls(), '->load() parses the method_call tag');
|
$this->assertEquals(array(array('setBar', array('foo', new Reference('foo'), array(true, false)))), $services['method_call2']->getMethodCalls(), '->load() parses the method_call tag');
|
||||||
$this->assertEquals('factory', $services['new_factory1']->getFactory(), '->load() parses the factory tag');
|
$this->assertEquals('factory', $services['new_factory1']->getFactory(), '->load() parses the factory tag');
|
||||||
$this->assertEquals(array(new Reference('baz'), 'getClass'), $services['new_factory2']->getFactory(), '->load() parses the factory tag');
|
$this->assertEquals(array(new Reference('baz'), 'getClass'), $services['new_factory2']->getFactory(), '->load() parses the factory tag');
|
||||||
|
@ -148,7 +148,7 @@ class CommandTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$this->assertInternalType('array', $result);
|
$this->assertInternalType('array', $result);
|
||||||
$this->assertNotEmpty($result);
|
$this->assertNotEmpty($result);
|
||||||
$this->assertRegexp('/PHP|HipHop/', $result[0]);
|
$this->assertRegExp('/PHP|HipHop/', $result[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testCastToString()
|
public function testCastToString()
|
||||||
|
@ -47,7 +47,7 @@ abstract class AbstractLayoutTest extends \Symfony\Component\Form\Test\FormInteg
|
|||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function assertXpathNodeValue(\DomElement $element, $expression, $nodeValue)
|
protected function assertXpathNodeValue(\DOMElement $element, $expression, $nodeValue)
|
||||||
{
|
{
|
||||||
$xpath = new \DOMXPath($element->ownerDocument);
|
$xpath = new \DOMXPath($element->ownerDocument);
|
||||||
$nodeList = $xpath->evaluate($expression);
|
$nodeList = $xpath->evaluate($expression);
|
||||||
|
@ -31,7 +31,7 @@ class IntlTestHelper
|
|||||||
*
|
*
|
||||||
* @param \PhpUnit_Framework_TestCase $testCase
|
* @param \PhpUnit_Framework_TestCase $testCase
|
||||||
*/
|
*/
|
||||||
public static function requireIntl(\PhpUnit_Framework_TestCase $testCase)
|
public static function requireIntl(\PHPUnit_Framework_TestCase $testCase)
|
||||||
{
|
{
|
||||||
// We only run tests if the version is *one specific version*.
|
// We only run tests if the version is *one specific version*.
|
||||||
// This condition is satisfied if
|
// This condition is satisfied if
|
||||||
@ -63,7 +63,7 @@ class IntlTestHelper
|
|||||||
*
|
*
|
||||||
* @param \PhpUnit_Framework_TestCase $testCase
|
* @param \PhpUnit_Framework_TestCase $testCase
|
||||||
*/
|
*/
|
||||||
public static function requireFullIntl(\PhpUnit_Framework_TestCase $testCase)
|
public static function requireFullIntl(\PHPUnit_Framework_TestCase $testCase)
|
||||||
{
|
{
|
||||||
// We only run tests if the intl extension is loaded...
|
// We only run tests if the intl extension is loaded...
|
||||||
if (!Intl::isExtensionLoaded()) {
|
if (!Intl::isExtensionLoaded()) {
|
||||||
@ -92,7 +92,7 @@ class IntlTestHelper
|
|||||||
*
|
*
|
||||||
* @param \PhpUnit_Framework_TestCase $testCase
|
* @param \PhpUnit_Framework_TestCase $testCase
|
||||||
*/
|
*/
|
||||||
public static function require32Bit(\PhpUnit_Framework_TestCase $testCase)
|
public static function require32Bit(\PHPUnit_Framework_TestCase $testCase)
|
||||||
{
|
{
|
||||||
if (4 !== PHP_INT_SIZE) {
|
if (4 !== PHP_INT_SIZE) {
|
||||||
$testCase->markTestSkipped('PHP 32 bit is required.');
|
$testCase->markTestSkipped('PHP 32 bit is required.');
|
||||||
@ -104,7 +104,7 @@ class IntlTestHelper
|
|||||||
*
|
*
|
||||||
* @param \PhpUnit_Framework_TestCase $testCase
|
* @param \PhpUnit_Framework_TestCase $testCase
|
||||||
*/
|
*/
|
||||||
public static function require64Bit(\PhpUnit_Framework_TestCase $testCase)
|
public static function require64Bit(\PHPUnit_Framework_TestCase $testCase)
|
||||||
{
|
{
|
||||||
if (8 !== PHP_INT_SIZE) {
|
if (8 !== PHP_INT_SIZE) {
|
||||||
$testCase->markTestSkipped('PHP 64 bit is required.');
|
$testCase->markTestSkipped('PHP 64 bit is required.');
|
||||||
|
@ -1229,7 +1229,7 @@ class ProcessTest extends \PHPUnit_Framework_TestCase
|
|||||||
} catch (RuntimeException $e) {
|
} catch (RuntimeException $e) {
|
||||||
$this->assertSame('This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.', $e->getMessage());
|
$this->assertSame('This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.', $e->getMessage());
|
||||||
if ($enhance) {
|
if ($enhance) {
|
||||||
$process->setEnhanceSigChildCompatibility(true);
|
$process->setEnhanceSigchildCompatibility(true);
|
||||||
} else {
|
} else {
|
||||||
self::$notEnhancedSigchild = true;
|
self::$notEnhancedSigchild = true;
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ $reflection = new ReflectionClass('Doctrine\\DBAL\\Platforms\\AbstractPlatform')
|
|||||||
$finder = new Finder();
|
$finder = new Finder();
|
||||||
$finder->name('*Platform.php')->in(dirname($reflection->getFileName()));
|
$finder->name('*Platform.php')->in(dirname($reflection->getFileName()));
|
||||||
foreach ($finder as $file) {
|
foreach ($finder as $file) {
|
||||||
require_once $file->getPathName();
|
require_once $file->getPathname();
|
||||||
$className = 'Doctrine\\DBAL\\Platforms\\'.$file->getBasename('.php');
|
$className = 'Doctrine\\DBAL\\Platforms\\'.$file->getBasename('.php');
|
||||||
|
|
||||||
$reflection = new ReflectionClass($className);
|
$reflection = new ReflectionClass($className);
|
||||||
|
@ -124,14 +124,14 @@ class DataCollectorTranslator implements TranslatorInterface, TranslatorBagInter
|
|||||||
} elseif ($catalogue->has($id, $domain)) {
|
} elseif ($catalogue->has($id, $domain)) {
|
||||||
$state = self::MESSAGE_EQUALS_FALLBACK;
|
$state = self::MESSAGE_EQUALS_FALLBACK;
|
||||||
|
|
||||||
$fallbackCatalogue = $catalogue->getFallBackCatalogue();
|
$fallbackCatalogue = $catalogue->getFallbackCatalogue();
|
||||||
while ($fallbackCatalogue) {
|
while ($fallbackCatalogue) {
|
||||||
if ($fallbackCatalogue->defines($id, $domain)) {
|
if ($fallbackCatalogue->defines($id, $domain)) {
|
||||||
$locale = $fallbackCatalogue->getLocale();
|
$locale = $fallbackCatalogue->getLocale();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$fallbackCatalogue = $fallbackCatalogue->getFallBackCatalogue();
|
$fallbackCatalogue = $fallbackCatalogue->getFallbackCatalogue();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$state = self::MESSAGE_MISSING;
|
$state = self::MESSAGE_MISSING;
|
||||||
|
@ -44,7 +44,7 @@ abstract class AbstractComparisonValidator extends ConstraintValidator
|
|||||||
// the DateTime constructor:
|
// the DateTime constructor:
|
||||||
// http://php.net/manual/en/datetime.formats.php
|
// http://php.net/manual/en/datetime.formats.php
|
||||||
if (is_string($comparedValue)) {
|
if (is_string($comparedValue)) {
|
||||||
if ($value instanceof \DatetimeImmutable) {
|
if ($value instanceof \DateTimeImmutable) {
|
||||||
// If $value is immutable, convert the compared value to a
|
// If $value is immutable, convert the compared value to a
|
||||||
// DateTimeImmutable too
|
// DateTimeImmutable too
|
||||||
$comparedValue = new \DatetimeImmutable($comparedValue);
|
$comparedValue = new \DatetimeImmutable($comparedValue);
|
||||||
|
@ -131,7 +131,7 @@ class AmqpCaster
|
|||||||
$prefix.'contentType' => $c->getContentType(),
|
$prefix.'contentType' => $c->getContentType(),
|
||||||
$prefix.'contentEncoding' => $c->getContentEncoding(),
|
$prefix.'contentEncoding' => $c->getContentEncoding(),
|
||||||
$prefix.'type' => $c->getType(),
|
$prefix.'type' => $c->getType(),
|
||||||
$prefix.'timestamp' => $c->getTimestamp(),
|
$prefix.'timestamp' => $c->getTimeStamp(),
|
||||||
$prefix.'priority' => $c->getPriority(),
|
$prefix.'priority' => $c->getPriority(),
|
||||||
$prefix.'expiration' => $c->getExpiration(),
|
$prefix.'expiration' => $c->getExpiration(),
|
||||||
$prefix.'userId' => $c->getUserId(),
|
$prefix.'userId' => $c->getUserId(),
|
||||||
|
Reference in New Issue
Block a user