Skip to content

Commit

Permalink
BehatFixtureFactory 5.3.8 compat (wrong usage of is_a())
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Jul 11, 2013
1 parent b506eb1 commit c2c8498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/BehatFixtureFactory.php
Expand Up @@ -9,7 +9,7 @@ public function createObject($name, $identifier, $data = null) {

// Copy identifier to some visible property unless its already defined.
// Exclude files, since they generate their own named based on the file path.
if(!is_a($name, 'File', true)) {
if(!$name != 'File' && !is_subclass_of($name, 'File')) {
foreach(array('Name', 'Title') as $fieldName) {
if(singleton($name)->hasField($fieldName) && !isset($data[$fieldName])) {
$data[$fieldName] = $identifier;
Expand Down

0 comments on commit c2c8498

Please sign in to comment.