Revision: 2008
Author: olavmrk
Date: Thu Nov 26 01:17:50 2009
Log: Utilities::getDOMChildren: Validate parameter types.
http://code.google.com/p/simplesamlphp/source/detail?r=2008
Modified:
/trunk/lib/SimpleSAML/Utilities.php
=======================================
--- /trunk/lib/SimpleSAML/Utilities.php Wed Nov 11 00:13:28 2009
+++ /trunk/lib/SimpleSAML/Utilities.php Thu Nov 26 01:17:50 2009
@@ -869,14 +869,15 @@
*
* This function accepts the same shortcuts for namespaces as the
isDOMElementOfType function.
*
- * @param $element The element we should look in.
- * @param $localName The name the element should have.
- * @param $namespaceURI The namespace the element should have.
- * @return Array with the matching elements in the order they are
found.
An empty array is
+ * @param DOMElement $element The element we should look in.
+ * @param string $localName The name the element should have.
+ * @param string $namespaceURI The namespace the element should have.
+ * @return array Array with the matching elements in the order they
are
found. An empty array is
* returned if no elements match.
*/
- public static function getDOMChildren($element, $localName,
$namespaceURI) {
- assert('$element instanceof DOMElement');
+ public static function getDOMChildren(DOMElement $element, $localName,
$namespaceURI) {
+ assert('is_string($localName)');
+ assert('is_string($namespaceURI)');
$ret = array();
--
You received this message because you are subscribed to the Google Groups
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simplesamlphp-commits?hl=en.