From 12936502cc738c7caad0adad9289c25f872e3e7e Mon Sep 17 00:00:00 2001 From: Tim Van Dijck Date: Mon, 2 Dec 2024 11:44:32 +0100 Subject: [PATCH 1/3] Prevent too big payloads for clipboard data --- src/Payloads/LogPayload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Payloads/LogPayload.php b/src/Payloads/LogPayload.php index 0c9eacb..d6e2434 100644 --- a/src/Payloads/LogPayload.php +++ b/src/Payloads/LogPayload.php @@ -35,7 +35,7 @@ public function __construct($values, $rawValues = []) $this->meta = [ [ - 'clipboard_data' => $this->getClipboardData($rawValues), + 'clipboard_data' => substr($this->getClipboardData($rawValues), 0, 20000), ], ]; From e2ecbc17a493dab635f3cf026858b46f0ccbb053 Mon Sep 17 00:00:00 2001 From: Tim Van Dijck Date: Mon, 2 Dec 2024 13:33:18 +0100 Subject: [PATCH 2/3] Fix tests for PHP 8.4 --- tests/RayTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/RayTest.php b/tests/RayTest.php index 8bd3aea..a37e44c 100644 --- a/tests/RayTest.php +++ b/tests/RayTest.php @@ -244,7 +244,7 @@ function getValueOfLastSentContent(string $contentKey) $firstFrame = $frames[0]; expect($firstFrame['class'])->toEqual('P\Tests\RayTest'); - expect($firstFrame['method'])->toEqual('{closure}'); + expect($firstFrame['method'])->toStartWith('{closure'); }); it('can send backtrace frames starting from a specific frame', function () { @@ -269,7 +269,7 @@ function getValueOfLastSentContent(string $contentKey) $firstFrame = $frames[0]; expect($firstFrame['class'])->toEqual('P\Tests\RayTest'); - expect($firstFrame['method'])->toEqual('{closure}'); + expect($firstFrame['method'])->toStartWith('{closure'); }); it('can send the caller to ray', function () { From 7f2dbb26f31c1ecee49087343c396bbefaee357b Mon Sep 17 00:00:00 2001 From: timvandijck Date: Mon, 2 Dec 2024 12:39:03 +0000 Subject: [PATCH 3/3] Update CHANGELOG --- CHANGELOG.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a10c3a..5c1fa8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,21 @@ All notable changes to `ray` will be documented in this file +## 1.41.3 - 2024-12-02 + +### What's Changed + +* Fixes an issue where some complex variables would not be shown in Ray. +* Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 by @dependabot in https://github.com/spatie/ray/pull/909 +* Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in https://github.com/spatie/ray/pull/928 +* Add support for PHPStan 2.0 by @sweptsquash in https://github.com/spatie/ray/pull/946 + +### New Contributors + +* @sweptsquash made their first contribution in https://github.com/spatie/ray/pull/946 + +**Full Changelog**: https://github.com/spatie/ray/compare/1.41.2...1.41.3 + ## 1.41.2 - 2024-04-24 ### What's Changed