From 235250e19288d949bdbbec6c435d483d9861d97e Mon Sep 17 00:00:00 2001 From: Pascal Borreli Date: Fri, 9 Nov 2012 10:41:41 +0000 Subject: [PATCH] Fixed case of php function --- src/Symfony/Component/Locale/Stub/StubIntlDateFormatter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Locale/Stub/StubIntlDateFormatter.php b/src/Symfony/Component/Locale/Stub/StubIntlDateFormatter.php index 2dc79d9d5f..877c40c5fd 100644 --- a/src/Symfony/Component/Locale/Stub/StubIntlDateFormatter.php +++ b/src/Symfony/Component/Locale/Stub/StubIntlDateFormatter.php @@ -186,7 +186,7 @@ class StubIntlDateFormatter $argumentError = null; if (version_compare(\PHP_VERSION, '5.3.4', '<') && !is_int($timestamp)) { $argumentError = 'datefmt_format: takes either an array or an integer timestamp value '; - } elseif (version_compare(\PHP_VERSION, '5.3.4', '>=') && !is_int($timestamp) && !$timestamp instanceOf \DateTime) { + } elseif (version_compare(\PHP_VERSION, '5.3.4', '>=') && !is_int($timestamp) && !$timestamp instanceof \DateTime) { $argumentError = 'datefmt_format: takes either an array or an integer timestamp value or a DateTime object'; } @@ -199,7 +199,7 @@ class StubIntlDateFormatter } // As of PHP 5.3.4, IntlDateFormatter::format() accepts DateTime instances - if (version_compare(\PHP_VERSION, '5.3.4', '>=') && $timestamp instanceOf \DateTime) { + if (version_compare(\PHP_VERSION, '5.3.4', '>=') && $timestamp instanceof \DateTime) { $timestamp = $timestamp->getTimestamp(); }