Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e356c2a

Browse filesBrowse files
committed
cosmetic tweak
1 parent 988b8f3 commit e356c2a
Copy full SHA for e356c2a

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/Symfony/Bundle/DoctrineMigrationsBundle/Command/MigrationsGenerateFromDataFixturesCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/DoctrineMigrationsBundle/Command/MigrationsGenerateFromDataFixturesCommand.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function execute(InputInterface $input, OutputInterface $output)
9595
if (is_object($param)) {
9696
if ($param instanceOf \DateTime) {
9797
$queries[$key][1][$key2] = $param->format('Y-m-d\TH:i:s\Z');
98-
} else if (in_array('__toString', get_class_methods($param))) {
98+
} else if (method_exists($param, '__toString')) {
9999
$queries[$key][1][$key2] = (string)$param;
100100
} else {
101101
$output->writeln(sprintf(' <comment>></comment> <info>cannot convert object of type %s to a string</info>', get_class($param)));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.