Skip to content

Commit 38fca6f

Browse files
committed
requires PHP 5.3
1 parent 72ab91e commit 38fca6f

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=5.2.2",
14+
"php": ">=5.3",
1515
"ext-simplexml": "*"
1616
},
1717
"autoload": {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RSS & Atom Feeds for PHP
77

88
RSS & Atom Feeds for PHP is a very small and easy-to-use library for consuming an RSS and Atom feeds.
99

10-
It requires PHP 5.2.2 or newer with CURL extension or enabled allow_url_fopen
10+
It requires PHP 5.3 or newer with CURL extension or enabled allow_url_fopen
1111
and is licensed under the New BSD License. You can obtain the latest version from
1212
our [GitHub repository](https://github.com/dg/rss-php/releases) or install it via Composer:
1313

src/Feed.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function toArray(SimpleXMLElement $xml = null)
147147
return (string) $xml;
148148
}
149149

150-
$arr = array();
150+
$arr = [];
151151
foreach ($xml->children() as $tag => $child) {
152152
if (count($xml->$tag) === 1) {
153153
$arr[$tag] = $this->toArray($child);
@@ -223,12 +223,12 @@ private static function httpRequest($url, $user, $pass)
223223
} else {
224224
$context = null;
225225
if ($user !== null && $pass !== null) {
226-
$options = array(
227-
'http'=> array(
226+
$options = [
227+
'http' => [
228228
'method' => 'GET',
229229
'header' => 'Authorization: Basic ' . base64_encode($user . ':' . $pass) . "\r\n",
230-
)
231-
);
230+
],
231+
];
232232
$context = stream_context_create($options);
233233
}
234234

0 commit comments

Comments
 (0)