Compare commits

..

No commits in common. "master" and "1.0.1" have entirely different histories.

3 changed files with 3 additions and 16 deletions

View file

@ -5,11 +5,6 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.0.2] - 2023-08-13
### Fixed
- Fixed issue in `\RssLib\Objects\RssFeed > Guid` where `guid` isn't correctly parsed if the "isPermaLink" attribute is missing.
## [1.0.1] - 2023-08-13 ## [1.0.1] - 2023-08-13

View file

@ -13,7 +13,7 @@
"description": "A library used to parse RSS feeds", "description": "A library used to parse RSS feeds",
"company": "Nosial", "company": "Nosial",
"copyright": "Copyright (c) 2022-2023 Nosial", "copyright": "Copyright (c) 2022-2023 Nosial",
"version": "1.0.2", "version": "1.0.0",
"uuid": "f24416e8-39f0-11ee-8dcf-f362baa8b68c" "uuid": "f24416e8-39f0-11ee-8dcf-f362baa8b68c"
}, },
"build": { "build": {

View file

@ -22,18 +22,10 @@
/** /**
* Public Constructor * Public Constructor
* *
* @param array|string $data * @param array $data
*/ */
public function __construct(array|string $data) public function __construct(array $data)
{ {
if(is_string($data))
{
$data = [
'guid' => $data,
'guid_isPermalink' => false
];
}
if(!array_key_exists('guid', $data)) if(!array_key_exists('guid', $data))
{ {
throw new InvalidArgumentException('Missing required key guid for guid'); throw new InvalidArgumentException('Missing required key guid for guid');