From c2c8498c642dc59b177c95317a016deb2d33fcf0 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 11 Jul 2013 15:13:27 +0200 Subject: [PATCH] BehatFixtureFactory 5.3.8 compat (wrong usage of is_a()) --- dev/BehatFixtureFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/BehatFixtureFactory.php b/dev/BehatFixtureFactory.php index b4ce190de..a4f7a829a 100644 --- a/dev/BehatFixtureFactory.php +++ b/dev/BehatFixtureFactory.php @@ -9,7 +9,7 @@ class BehatFixtureFactory extends \FixtureFactory { // 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;