From cdfd9308f829668524608c7fba507d5bf91f3401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20V=C3=A9tillard?= <84911237+clementvtrd@users.noreply.github.com> Date: Wed, 15 Jul 2026 15:08:11 +0200 Subject: [PATCH 1/2] doc: add initial changelog with version 0.0.1 details --- CHANGELOG.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..25b303a --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,20 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [0.0.1] — 2026-07-15 + +### Added + +- `clock.disallowDateTimeNow` rule — prevents instantiating `DateTime` or `DateTimeImmutable` with the current time (PSR-20 compliance). +- `clock.disallowTimeFunctions` rule — prevents calling `time()` or `date()` without an explicit timestamp argument (PSR-20 compliance). +- Automatic Packagist publishing on GitHub release via `publish.yml` workflow. +- CI matrix across PHP 8.2, 8.3, 8.4, and 8.5. + +[Unreleased]: https://github.com/KnpLabs/phpstan-rules/compare/v0.0.1...HEAD +[0.0.1]: https://github.com/KnpLabs/phpstan-rules/releases/tag/v0.0.1 From f08375aae008e2299668813c9e1562577ab26373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20V=C3=A9tillard?= <84911237+clementvtrd@users.noreply.github.com> Date: Wed, 15 Jul 2026 15:10:55 +0200 Subject: [PATCH 2/2] doc: update composer.json with additional metadata for better project visibility --- composer.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/composer.json b/composer.json index 261304b..aaa27e4 100644 --- a/composer.json +++ b/composer.json @@ -3,6 +3,18 @@ "description": "PHPStan rules shared across KnpLabs organization projects", "type": "phpstan-extension", "license": "MIT", + "keywords": ["php", "phpstan", "static-analysis", "rules", "good practice"], + "homepage": "https://github.com/KnpLabs/phpstan-rules", + "authors": [ + { + "name": "KnpLabs", + "homepage": "https://knplabs.com" + } + ], + "support": { + "issues": "https://github.com/KnpLabs/phpstan-rules/issues", + "source": "https://github.com/KnpLabs/phpstan-rules" + }, "require": { "php": "^8.2", "phpstan/phpstan": "^2.0"