From edbc5195b3535981bedada9db19a004dce2cf022 Mon Sep 17 00:00:00 2001 From: Olivier Laviale Date: Sun, 17 Sep 2023 11:22:15 +0200 Subject: [PATCH] Update README --- README.md | 5 +++-- src/MemoizeAttributeCollector.php | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6c9fc8f..f576f22 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,10 @@ [![Downloads](https://img.shields.io/packagist/dt/olvlvl/composer-attribute-collector.svg)](https://packagist.org/packages/olvlvl/composer-attribute-collector) composer-attribute-collector is a plugin for [Composer][]. Its ambition is to provide a convenient -and near zero-cost way to retrieve targets of PHP 8 attributes. After the autoloader has been +way—and near zero-cost—to retrieve targets of PHP 8 attributes. After the autoloader has been dumped, the plugin collects attribute targets and generates a static file. Later, these targets can -be retrieved through a convenient interface, without involving reflexion. +be retrieved through a convenient interface, without involving reflection. The plugin is useful when +you need to _discover_ attributes in a codebase—for known classes you can use reflection. diff --git a/src/MemoizeAttributeCollector.php b/src/MemoizeAttributeCollector.php index 40f279a..fbecb9f 100644 --- a/src/MemoizeAttributeCollector.php +++ b/src/MemoizeAttributeCollector.php @@ -4,8 +4,6 @@ use Composer\IO\IOInterface; use ReflectionException; - -use RuntimeException; use Throwable; use function array_filter;