Releases: WyriHaximus/php-json-throwable
4.2.0
Final minor release supporting PHP 8.1 and lower, includes widening of several support packages to new major versions.
4.2.0
- Total issues resolved: 0
- Total pull requests resolved: 43
- Total contributors: 3
Bug 🐞
- 98: Hotfix CI workflow thanks to @WyriHaximus
- 94: Renovate should use non-dev package config thanks to @WyriHaximus
Dependencies 📦
- 97: Update dependency wyrihaximus/test-utilities to v6 thanks to @renovate[bot]
- 96: Update dependency doctrine/instantiator to v2 thanks to @renovate[bot]
- 95: Update dependency thecodingmachine/safe to v2 thanks to @renovate[bot]
- 93: Update dependency wyrihaximus/json-utilities to ^1.3.1 thanks to @renovate[bot]
- 92: Update dependency thecodingmachine/safe to ^1.3.3 thanks to @renovate[bot]
- 90: Bump composer/composer from 1.10.23 to 1.10.27 thanks to @dependabot[bot]
- 89: Bump guzzlehttp/guzzle from 7.4.0 to 7.8.1 thanks to @dependabot[bot]
- 88: Bump guzzlehttp/psr7 from 2.1.0 to 2.5.0 thanks to @dependabot[bot]
- 81: Bump doctrine/instantiator from 1.4.0 to 1.4.1 thanks to @dependabot[bot]
- 80: Bump wyrihaximus/test-utilities from 3.7.5 to 3.7.6 thanks to @dependabot[bot]
- 79: Bump wyrihaximus/test-utilities from 3.7.2 to 3.7.5 thanks to @dependabot[bot]
- 78: Bump wyrihaximus/test-utilities from 3.7.2 to 3.7.4 thanks to @dependabot[bot]
- 76: Bump wyrihaximus/test-utilities from 3.7.0 to 3.7.2 thanks to @dependabot[bot]
- 74: Bump wyrihaximus/test-utilities from 3.6.8 to 3.7.0 thanks to @dependabot[bot]
- 73: Bump wyrihaximus/test-utilities from 3.6.7 to 3.6.8 thanks to @dependabot[bot]
- 72: Bump wyrihaximus/test-utilities from 3.6.6 to 3.6.7 thanks to @dependabot[bot]
- 71: Bump wyrihaximus/test-utilities from 3.6.5 to 3.6.6 thanks to @dependabot[bot]
- 70: Bump wyrihaximus/test-utilities from 3.6.2 to 3.6.5 thanks to @dependabot[bot]
- 67: Bump wyrihaximus/test-utilities from 3.6.1 to 3.6.2 thanks to @dependabot[bot]
- 66: Bump wyrihaximus/test-utilities from 3.6.0 to 3.6.1 thanks to @dependabot[bot]
- 65: Bump wyrihaximus/test-utilities from 3.5.14 to 3.6.0 thanks to @dependabot[bot]
- 64: Bump wyrihaximus/test-utilities from 3.5.13 to 3.5.14 thanks to @dependabot[bot]
- 63: Bump wyrihaximus/test-utilities from 3.5.12 to 3.5.13 thanks to @dependabot[bot]
- 62: Bump wyrihaximus/test-utilities from 3.5.11 to 3.5.12 thanks to @dependabot[bot]
- 61: Bump wyrihaximus/test-utilities from 3.5.10 to 3.5.11 thanks to @dependabot[bot]
- 60: Bump wyrihaximus/test-utilities from 3.5.9 to 3.5.10 thanks to @dependabot[bot]
- 59: Bump wyrihaximus/test-utilities from 3.5.8 to 3.5.9 thanks to @dependabot[bot]
- 58: Bump wyrihaximus/test-utilities from 3.5.7 to 3.5.8 thanks to @dependabot[bot]
- 57: Bump wyrihaximus/test-utilities from 3.5.5 to 3.5.7 thanks to @dependabot[bot]
- 56: Bump wyrihaximus/test-utilities from 3.5.4 to 3.5.5 thanks to @dependabot[bot]
- 55: Bump wyrihaximus/test-utilities from 3.5.3 to 3.5.4 thanks to @dependabot[bot]
- 54: Bump wyrihaximus/test-utilities from 3.5.2 to 3.5.3 thanks to @dependabot[bot]
- 53: Bump wyrihaximus/test-utilities from 3.5.0 to 3.5.2 thanks to @dependabot[bot]
- 52: Bump wyrihaximus/test-utilities from 3.4.1 to 3.5.0 thanks to @dependabot[bot]
- 51: Bump wyrihaximus/test-utilities from 3.4.0 to 3.4.1 thanks to @dependabot[bot]
- 50: Bump wyrihaximus/test-utilities from 3.3.3 to 3.4.0 thanks to @dependabot[bot]
- 49: Bump wyrihaximus/test-utilities from 3.3.2 to 3.3.3 thanks to @dependabot[bot]
- 48: Bump wyrihaximus/test-utilities from 3.3.1 to 3.3.2 thanks to @dependabot[bot]
- 47: Bump wyrihaximus/json-utilities from 1.2.0 to 1.3.0 thanks to @dependabot[bot]
Dependencies 📦,Enhancement ✨
- 87: Configure Renovate thanks to @renovate[bot]
Enhancement ✨
4.1.0
The release adds PHP 8 support!
4.1.0
- Total issues resolved: 0
- Total pull requests resolved: 13
- Total contributors: 2
CI 🚧,Configuration ⚙,Dependencies 📦,JSON 👨💼,PHP 🐘,YAML 🍄
- 46: Add PHP 8 support thanks to @WyriHaximus
Dependencies 📦,JSON 👨💼,PHP 🐘
Dependencies 📦,PHP 🐘
- 44: Bump thecodingmachine/safe from 1.3.2 to 1.3.3 thanks to @dependabot[bot]
- 43: Bump thecodingmachine/safe from 1.3.1 to 1.3.2 thanks to @dependabot[bot]
- 42: Bump wyrihaximus/test-utilities from 2.8.2 to 2.9.0 thanks to @dependabot[bot]
- 41: Bump wyrihaximus/test-utilities from 2.7.0 to 2.8.2 thanks to @dependabot[bot]
- 40: Bump wyrihaximus/test-utilities from 2.7.0 to 2.8.0 thanks to @dependabot[bot]
- 39: Bump thecodingmachine/safe from 1.3 to 1.3.1 thanks to @dependabot[bot]
- 38: Bump thecodingmachine/safe from 1.2.1 to 1.3 thanks to @dependabot[bot]
- 37: Bump thecodingmachine/safe from 1.2.0 to 1.2.1 thanks to @dependabot[bot]
- 36: Bump wyrihaximus/test-utilities from 2.6.0 to 2.7.0 thanks to @dependabot[bot]
- 35: Bump thecodingmachine/safe from 1.1.3 to 1.2.0 thanks to @dependabot[bot]
- 34: Bump wyrihaximus/test-utilities from 2.5.0 to 2.6.0 thanks to @dependabot[bot]
4.0.0
Including additional properties from throwables
This release comes with support for including additional properties from the throwable into the encoded version of the throwable using the AdditionalPropertiesInterface
. As this is a BC break on the (return) type hint of the encoded throwable, this feature requires a new major release.
<?php
declare(strict_types=1);
use WyriHaximus\AdditionalPropertiesInterface;
use WyriHaximus�xposeTraceTrait;
final class AdditionalPropertiesException extends Exception implements AdditionalPropertiesInterface
{
use ExposeTraceTrait;
private int $time;
public function __construct(int $time)
{
parent::__construct('Additional properties exception raised');
$this->time = $time;
}
public function time(): int
{
return $this->time;
}
/**
* @return array<string>
*/
public function additionalProperties(): array
{
return ['time'];
}
}
4.0.0
- Total issues resolved: 0
- Total pull requests resolved: 3
- Total contributors: 1
Documentation 📚,MarkDown 📝
- 33: Finish AdditionalPropertiesInterface readme section thanks to @WyriHaximus
- 31: Add Encode/Decode array type hint signature thanks to @WyriHaximus
Documentation 📚,MarkDown 📝,PHP 🐘,Source 🔮,Tests 🧪
3.0.0
Trace access
This package now includes a trait for easy access to the trace from the original throwable, note that arguments of each item in the trace have been dropped to be able to serialize it. You can use the trait the following way, and access the original trace through getOriginalTrace()
:
<?php
declare(strict_types=1);
use WyriHaximus�xposeTraceTrait;
final class ExposeTraceException extends Exception
{
use ExposeTraceTrait;
}
3.0.0
- Total issues resolved: 0
- Total pull requests resolved: 21
- Total contributors: 3
CI 🚧,Configuration ⚙,YAML 🍄
Documentation 📚,MarkDown 📝,PHP 🐘,Source 🔮,Tests 🧪
- 29: Add support for trace thanks to @WyriHaximus
Documentation 📚,MarkDown 📝
- 28: Update documentation thanks to @WyriHaximus
- 26: Update badges thanks to @WyriHaximus
Configuration ⚙,YAML 🍄
CI 🚧,Configuration ⚙,Dependencies 📦,JSON 👨💼,NEON 🦹♂️,PHP 🐘,Source 🔮,Tests 🧪,YAML 🍄
- 25: Bring this package into 2020 thanks to @WyriHaximus
PHP 🐘,Source 🔮
-
24: Drop unnecessary typechecks thanks to @WyriHaximus
-
23: Github config thanks to @WyriHaximus
Dependencies 📦,PHP 🐘
- 22: Bump api-clients/test-utilities from 4.3.0 to 4.3.1 thanks to @dependabot-preview[bot]
- 20: Bump react/event-loop from 0.4.3 to 1.0.0 thanks to @dependabot-preview[bot]
- 18: Bump phpunit/phpunit-mock-objects from 5.0.6 to 5.0.10 thanks to @dependabot-preview[bot]
- 17: Bump clue/block-react from 1.2.0 to 1.3.0 thanks to @dependabot-preview[bot]
- 16: Bump react/promise from 2.5.1 to 2.7.1 thanks to @dependabot-preview[bot]
- 15: Bump phpunit/phpunit from 6.5.7 to 6.5.13 thanks to @dependabot-preview[bot]
- 13: Bump phake/phake from 3.0.1 to 3.1.3 thanks to @dependabot-preview[bot]
- 12: Bump composer/ca-bundle from 1.1.0 to 1.1.3 thanks to @dependabot-preview[bot]
- 10: Bump padraic/phar-updater from 1.0.5 to 1.0.6 thanks to @dependabot-preview[bot]
- 9: Bump jakub-onderka/php-console-color from 0.1 to 0.2 thanks to @dependabot-preview[bot]
- 6: Bump symfony/polyfill-php72 from 1.7.0 to 1.10.0 thanks to @dependabot-preview[bot]
- 4: Bump friendsofphp/php-cs-fixer from 2.10.4 to 2.13.0 thanks to @dependabot-preview[bot]
PHP 🐘,Tests 🧪
- 21: Enhance assertions thanks to @peter279k
2.0.0
1.1.1
- Added missing previous property
1.1.0
- Use doctrine/instantiator to create throwables without calling the constructor
1.0.3
- Use reflection to create exception on PHP 7 and use a fallback for PHP 5
1.0.2
- Minor performance improvement
1.0.1
- Bug fix: Only assign values properties to properties when they exist