We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e83468a commit 1c5c5c8Copy full SHA for 1c5c5c8
YaLinqo/Linq.php
@@ -8,12 +8,14 @@
8
});
9
// @codeCoverageIgnoreEnd
10
11
-/**
12
- * @param array|\Iterator|\IteratorAggregate|\YaLinqo\Enumerable $source
13
- * @throws \InvalidArgumentException If source is not array or Traversible or Enumerable.
14
- * @return \YaLinqo\Enumerable
15
- */
16
-function from ($source)
17
-{
18
- return \YaLinqo\Enumerable::from($source);
19
-}
+if (!function_exists('from')) {
+ /**
+ * @param array|\Iterator|\IteratorAggregate|\YaLinqo\Enumerable $source
+ * @throws \InvalidArgumentException If source is not array or Traversible or Enumerable.
+ * @return \YaLinqo\Enumerable
+ */
+ function from ($source)
+ {
+ return \YaLinqo\Enumerable::from($source);
20
+ }
21
+}
0 commit comments