Skip to content

Commit a50dc84

Browse files
Merge pull request #9 from CASParser/release-please--branches--main--changes--next
release: 0.6.1
2 parents 4f73ed5 + 1c9cd59 commit a50dc84

31 files changed

Lines changed: 240 additions & 56 deletions

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.6.0"
2+
".": "0.6.1"
33
}

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 0.6.1 (2026-03-03)
4+
5+
Full Changelog: [v0.6.0...v0.6.1](https://github.com/CASParser/cas-parser-php/compare/v0.6.0...v0.6.1)
6+
7+
### Chores
8+
9+
* **internal:** codegen related update ([decef42](https://github.com/CASParser/cas-parser-php/commit/decef42bb63d7f55cd4078ccd78a041fd80d90e9))
10+
* **internal:** upgrade phpunit ([6aae9d0](https://github.com/CASParser/cas-parser-php/commit/6aae9d0dbaf7cba07bf7f05db9e306541bf122f2))
11+
312
## 0.6.0 (2026-02-23)
413

514
Full Changelog: [v0.5.0...v0.6.0](https://github.com/CASParser/cas-parser-php/compare/v0.5.0...v0.6.0)

composer.lock

Lines changed: 66 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Core/Conversion.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,37 @@ private static function tryConvert(Converter|ConverterSource|string $target, mix
170170

171171
return $value;
172172

173+
case 'DateTimeInterface':
174+
case 'DateTimeImmutable':
175+
if (is_string($value)) {
176+
try {
177+
++$state->maybe;
178+
179+
return new \DateTimeImmutable($value);
180+
} catch (\Exception) {
181+
--$state->maybe;
182+
}
183+
}
184+
185+
++$state->no;
186+
187+
return $value;
188+
189+
case 'DateTime':
190+
if (is_string($value)) {
191+
try {
192+
++$state->maybe;
193+
194+
return new \DateTime($value);
195+
} catch (\Exception) {
196+
--$state->maybe;
197+
}
198+
}
199+
200+
++$state->no;
201+
202+
return $value;
203+
173204
default:
174205
++$state->no;
175206

src/Services/AccessTokenRawService.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
use CasParser\ServiceContracts\AccessTokenRawContract;
1414

1515
/**
16+
* Endpoints for managing access tokens for the Portfolio Connect SDK.
17+
* Use these to generate short-lived `at_` prefixed tokens that can be safely passed to frontend applications.
18+
* Access tokens can be used in place of API keys on all v4 endpoints.
19+
*
1620
* @phpstan-import-type RequestOpts from \CasParser\RequestOptions
1721
*/
1822
final class AccessTokenRawService implements AccessTokenRawContract

0 commit comments

Comments
 (0)