From a90a4d9f1412d26cbda0c461dbd1eb7920a0812e Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Tue, 24 Nov 2026 03:42:16 +0900 Subject: [PATCH] Remove the unused ircmaxell/random-lib dependency No code uses RandomLib and aura/session 4.0, 6.0 and 7.0 do not require it. Also log the changes merged since 1.4.0. --- CHANGELOG.md | 11 +++++++++++ composer.json | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f3a0dc..5ddf9bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## [Unreleased] +### Added +- Psalm `@psalm-taint-source input` annotations on `CookieProvider` and `SessionProvider`, so Psalm taint analysis treats the injected cookie values as user input. + +### Changed +- `CookieProvider` declares its provided type as `array>`, allowing nested cookie values. +- `Cookie` and `DeleteCookie` declare `#[Attribute]` and `#[Qualifier]` as separate attributes. +- `AuraSessionInject::setSession()` declares a `void` return type. A subclass of a class using the trait that overrides `setSession()` must now declare `: void`. + +### Removed +- The package no longer requires `ircmaxell/random-lib`, which it did not use. Users who rely on it must require it themselves. + ## [1.4.0] - 2026-11-22 ### Changed diff --git a/composer.json b/composer.json index 18527b8..97200ad 100644 --- a/composer.json +++ b/composer.json @@ -7,8 +7,7 @@ "require": { "php": "^8.0", "ray/di": "^2.14", - "aura/session": "^4.0 || ^6.0 || ^7.0", - "ircmaxell/random-lib": "^1.1" + "aura/session": "^4.0 || ^6.0 || ^7.0" }, "require-dev": { "phpunit/phpunit": "^9.6"