Skip to content

Commit 703de61

Browse files
authored
Merge pull request #410 from Liturgical-Calendar/development
Bump version to 5.5 with decree serialization fixes
2 parents 09209f5 + b2b3fbd commit 703de61

File tree

6 files changed

+41
-9
lines changed

6 files changed

+41
-9
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
# To get started with Dependabot version updates, you'll need to specify which
2-
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for all configuration options:
4-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
1+
# Specify a non-default branch for pull requests for composer dependencies
52

63
version: 2
74
updates:
8-
- package-ecosystem: "composer" # See documentation for possible values
9-
directory: "/" # Location of package manifests
5+
- package-ecosystem: "composer"
6+
directory: "/"
107
schedule:
118
interval: "weekly"
9+
# Raise pull requests for version updates
10+
# to composer packages against the `development` branch
1211
target-branch: "development"
12+
# Labels on pull requests for version updates
13+
labels:
14+
- "composer dependencies"

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# CHANGELOG
22

33
<!--
4-
## [v5.5](https://github.com/Liturgical-Calendar/LiturgicalCalendarAPI/releases/tag/v5.5) (unreleased)
4+
## [v5.6](https://github.com/Liturgical-Calendar/LiturgicalCalendarAPI/releases/tag/v5.6) (unreleased)
55
66
* implement `filter` parameter for limited sets of calendar events, see issue [#43](https://github.com/Liturgical-Calendar/LiturgicalCalendarAPI/issues/43)
77
-->
88

9+
## [v5.5](https://github.com/Liturgical-Calendar/LiturgicalCalendarAPI/releases/tag/v5.5) (November 27th 2025)
10+
11+
* fix bug with decrees serialization, see issue [#408](https://github.com/Liturgical-Calendar/LiturgicalCalendarAPI/issues/408)
12+
13+
Happy Thanksgiving! 🦃
14+
915
## [v5.4](https://github.com/Liturgical-Calendar/LiturgicalCalendarAPI/releases/tag/v5.4) (November 27th 2025)
1016

1117
* implement JWT authentication for PUT/PATCH/DELETE requests, see issue [#262](https://github.com/Liturgical-Calendar/LiturgicalCalendarAPI/issues/262)

jsondata/schemas/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"info": {
1414
"description": "An API which allows to retrieve data about the **Roman Calendar** for any given year, between 1970 and 9999. The data strives for historical accuracy (memorials and feast days are only generated from the year in which they were effectively introduced). The data is based on original sources (Roman Missals, Decrees of the Dicastery for Divine Worship and the Discipline of the Sacraments, Mysterii Paschalis, etc.), not on data copied or retrieved from online sources which may not be accurate. The API offers multiple locales and multiple calendars, from the **General Roman Calendar** to national or diocesan calendars.",
15-
"version": "5.4",
15+
"version": "5.5",
1616
"title": "Liturgical Calendar",
1717
"contact": {
1818
"email": "[email protected]",

src/Handlers/CalendarHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ final class CalendarHandler extends AbstractHandler
114114
private string $BaptismLordFmt;
115115
private string $BaptismLordMod;
116116

117-
public const API_VERSION = '5.4';
117+
public const API_VERSION = '5.5';
118118
private string $CachePath = '';
119119
private string $CacheFile = '';
120120
private string $CacheDuration = '';

src/Models/Decrees/DecreeItemSetPropertyGradeMetadata.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,16 @@ protected static function fromArrayInternal(array $data): static
100100
$url_lang_map
101101
);
102102
}
103+
104+
/**
105+
* Returns an associative array representing the object, including the property field.
106+
*
107+
* @return array<string,string|int|array<string,string>> The associative array containing the properties of the object.
108+
*/
109+
public function jsonSerialize(): array
110+
{
111+
$result = parent::jsonSerialize();
112+
$result['property'] = $this->property;
113+
return $result;
114+
}
103115
}

src/Models/Decrees/DecreeItemSetPropertyNameMetadata.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,16 @@ protected static function fromArrayInternal(array $data): static
9292
$url_lang_map
9393
);
9494
}
95+
96+
/**
97+
* Returns an associative array representing the object, including the property field.
98+
*
99+
* @return array<string,string|int|array<string,string>> The associative array containing the properties of the object.
100+
*/
101+
public function jsonSerialize(): array
102+
{
103+
$result = parent::jsonSerialize();
104+
$result['property'] = $this->property;
105+
return $result;
106+
}
95107
}

0 commit comments

Comments
 (0)