Changeset 331
- Timestamp:
- 12/27/07 22:04:37 (7 months ago)
- Files:
-
- branches/2.3/classes/phing/Phing.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.3/classes/phing/Phing.php
r330 r331 151 151 * @throws Exception - if there is an error during build 152 152 */ 153 public static function start($args, $additionalUserProperties = null) {153 public static function start($args, array $additionalUserProperties = null) { 154 154 155 155 try { … … 162 162 163 163 if ($additionalUserProperties !== null) { 164 $keys = $additionalUserProperties->keys(); 165 while(count($keys)) { 166 $key = array_shift($keys); 167 $property = $additionalUserProperties->getProperty($key); 168 $m->setDefinedProperty($key, $property); 164 foreach($additionalUserProperties as $key => $value) { 165 $m->setDefinedProperty($key, $value); 169 166 } 170 167 }
