diff --git a/composer.json b/composer.json index 3dc5ef5..a2db358 100644 --- a/composer.json +++ b/composer.json @@ -27,9 +27,10 @@ }, "require": { "php": "^7.3 || ^8.0", - "bear/resource": "^1.15", + "bear/resource": "^1.15.1", "bear/sunday": "^1.5", - "ray/di": "^2.11" + "ray/di": "^2.11", + "ray/aop": "^2.10.4" }, "require-dev": { "phpunit/phpunit": "^9.5", diff --git a/phpunit.xml.dist b/phpunit.xml.dist index ec09094..a8cda9d 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,12 +1,12 @@ - + src - + tests diff --git a/src/Streamer.php b/src/Streamer.php index 26c5d90..59a09d5 100644 --- a/src/Streamer.php +++ b/src/Streamer.php @@ -31,6 +31,7 @@ final class Streamer implements StreamerInterface * * @Stream */ + #[Stream] public function __construct($stream) { $this->stream = $stream; diff --git a/tests/bootstrap.php b/tests/bootstrap.php new file mode 100644 index 0000000..4e8c294 --- /dev/null +++ b/tests/bootstrap.php @@ -0,0 +1,13 @@ += 8) { + ServiceLocator::setReader(new AttributeReader()); +}